summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 35a4971)
raw | patch | inline | side by side (parent: 35a4971)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 May 2008 06:46:49 +0000 (06:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 May 2008 06:46:49 +0000 (06:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10974 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_FAI.inc | patch | blob | history |
index b4369317d6431758dc6b6e00bf7e5cc5f61dad6f..f935bd4c956cd73ada51e3b25e974d8bcc9059eb 100644 (file)
$to_copy = array();
foreach($source_dns as $dn => $attrs){
$ldap->cd($dn);
- $ldap->ls("(objectClass=gotoSubmenuEntry)(objectClass=gotoMenuEntry)",$dn,array("dn"));
+ $ldap->ls("(|(objectClass=gotoSubmenuEntry)(objectClass=gotoMenuEntry))",$dn,array("dn"));
while($attrs = $ldap->fetch()){
$destination = preg_replace("/".normalizePreg($dn)."$/","ou=".$destination_name.",".$dn,$attrs['dn']);
$to_copy[$attrs['dn']] = $destination;