From: cajus Date: Tue, 30 Sep 2008 13:20:41 +0000 (+0000) Subject: Added NBD "shares" X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5df62a61400ca964893f5c57b0f9e4da0484bb7;p=gosa.git Added NBD "shares" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12565 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index b3361539d..a3b09a8d8 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -550,18 +550,23 @@ class config { /* Get NFS server lists */ $tmp= array("default"); + $tmp2= array("default"); $ldap->cd ($this->current['BASE']); $ldap->search ("(&(objectClass=goShareServer)(goExportEntry=*))"); while ($attrs= $ldap->fetch()){ for ($i= 0; $i<$attrs["goExportEntry"]["count"]; $i++){ - if(!preg_match('/^[^|]+\|[^|]+\|NFS\|.*$/', $attrs["goExportEntry"][$i])){ - continue; - } - $path= preg_replace ("/^[^|]+\|[^|]+\|[^|]+\|[^|]+\|([^|]+).*$/", '\1', $attrs["goExportEntry"][$i]); - $tmp[]= $attrs["cn"][0].":$path"; + if(preg_match('/^[^|]+\|[^|]+\|NFS\|.*$/', $attrs["goExportEntry"][$i])){ + $path= preg_replace ("/^[^|]+\|[^|]+\|[^|]+\|[^|]+\|([^|]+).*$/", '\1', $attrs["goExportEntry"][$i]); + $tmp[]= $attrs["cn"][0].":$path"; + } + if(preg_match('/^[^|]+\|[^|]+\|NBD\|.*$/', $attrs["goExportEntry"][$i])){ + $path= preg_replace ("/^[^|]+\|[^|]+\|[^|]+\|[^|]+\|([^|]+).*$/", '\1', $attrs["goExportEntry"][$i]); + $tmp2[]= $attrs["cn"][0].":$path"; + } } } $this->data['SERVERS']['NFS']= $tmp; + $this->data['SERVERS']['NBD']= $tmp2; /* Load Terminalservers */ $ldap->cd ($this->current['BASE']);