Code

Skip password only assignments in gotoShare remove entry
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 13:20:45 +0000 (13:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 13:20:45 +0000 (13:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7518 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goShareServer.inc

index 6f6347627cb316854e4aa78158b7a2aff047d553..6a9f8424c60cd9cce51d3c57b9ec6661616e4776 100644 (file)
@@ -223,7 +223,7 @@ class goShareServer extends goService{
     /* Check if the share is used by someone */
     $ldap = $this->config->get_ldap_link();
     $ldap->cd($this->config->current['BASE']);
-    $ldap->search("(|(gotoProfileServer=*|$id)(gotoShare=*|$id|*))", array("cn"));
+    $ldap->search("(|(gotoProfileServer=*|$id)(gotoShare=*|$id|*||*))", array("cn"));
     $cnt= $ldap->count();
     if ($cnt){
       $msg= sprintf(_("The share can't be removed since it is still used by %d users:"), $cnt);