From: cajus Date: Wed, 7 Jun 2006 14:23:01 +0000 (+0000) Subject: Fixed NFS server array X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7825c77af141dd7fb517c267e91b27e93765da4e;p=gosa.git Fixed NFS server array git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3673 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_config.inc b/include/class_config.inc index 88754e069..d1f47b457 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -391,13 +391,15 @@ class config { $ldap->search ("(&(objectClass=goShareServer)(goExportEntry=*))"); while ($attrs= $ldap->fetch()){ for ($i= 0; $i<$attrs["goExportEntry"]["count"]; $i++){ - $path= preg_replace ("/\s.*$/", "", $attrs["goExportEntry"][$i]); + if(!preg_match('/^[^|]+\|[^|]+\|NFS\|.*$/', $attrs["goExportEntry"][$i])){ + continue; + } + $path= preg_replace ("/^[^|]+\|[^|]+\|[^|]+\|[^|]+\|([^|]+).*$/", '\1', $attrs["goExportEntry"][$i]); $tmp[]= $attrs["cn"][0].":$path"; } } $this->data['SERVERS']['NFS']= $tmp; - /* Load Terminalservers */ $ldap->cd ($this->current['BASE']); $ldap->search ("(objectClass=goTerminalServer)");