Code

Fixed accessTo undefined index
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Sep 2006 03:36:39 +0000 (03:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Sep 2006 03:36:39 +0000 (03:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4609 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index 5defa47bb68227d9170a41ae65cf6ea6acfdd792..56fa2a65209bff251f45b5ddef6430b69f700ca1 100644 (file)
@@ -1058,7 +1058,7 @@ class posixAccount extends plugin
     }
 
     $ldap->cd($this->config->current['BASE']);
-    $ldap->search("(&(objectClass=gosaUserTemplate)(uid=".$template."))", array("cn","accessTo"));
+    $ldap->search("(&(objectClass=gosaUserTemplate)(uid=".$template.")(accessTo=*))", array("cn","accessTo"));
     while($attr = $ldap->fetch()){
       $tmp = $attr['accessTo'];
       unset ($tmp['count']);