summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 156a13a)
raw | patch | inline | side by side (parent: 156a13a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Jun 2006 04:42:21 +0000 (04:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Jun 2006 04:42:21 +0000 (04:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3821 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_ldap.inc | patch | blob | history |
diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index b2085531dc7c755a38ee2de010ec39dad715f9da..39482bf6a0a6193e244742f4b4eb64292cdd96e9 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
if ($recursive){
$this->cd($dn);
- $this->search("$filter", array('dn'));
+ $this->ls($filter,$dn, array('dn','objectClass'));
+ $deps = array();
while ($attrs= $this->fetch()){
$display.= $this->gen_one_entry($attrs['dn'], $filter, $attributes);
$display.= "\n";
+
+ if(in_array("organizationalUnit",$attrs['objectClass'])){
+ $deps[] = $attrs['dn'];
+ }
+ }
+ foreach($deps as $dn){
+ $display .= $this->gen_ldif($dn, $filter,$attributes,$recursive);
}
} else {
$display.= $this->gen_one_entry($dn);
}
-
return ($display);
}
-function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $recursive= TRUE,$r_array=0)
+
+ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $recursive= TRUE,$r_array=0)
{
$display= "";