summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95fbf9c)
raw | patch | inline | side by side (parent: 95fbf9c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Sep 2006 08:18:53 +0000 (08:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Sep 2006 08:18:53 +0000 (08:18 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4652 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupApplication.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index 80839ce16b81f0a2df4529fb66be18e9966f0a56..26af428f42ae7b09e6b3f20492cf7216ea1f1ebf 100644 (file)
$ldap = $this->config->get_ldap_link();
$ldap->cd($dn);
$ldap->search("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",array("ou"));
+
+ $ui = get_userinfo();
+ $returned = get_list("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",$ui->subtreeACL,$dn,array("ou"));
$ret =array();
- while($attrs = $ldap->fetch()){
+
+ foreach($returned as $attrs){
if(preg_match("/ou=apps,/",$attrs['dn'])){
$bb = preg_replace("/ou=apps,.*/","",$attrs['dn']);
$parts = array_reverse(split("ou=",$bb));