X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_ldap.inc;h=2662f02db9754f30344e24b14d9f36adc66a7f48;hb=b130a469e86d937a382fac5864219c190f2a6e36;hp=6a2c445103ccbdf074333d7e5d822963df69683c;hpb=6a1f9891c4d90dcd283c4bfd3e75069103c736eb;p=gosa.git diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 6a2c44510..2662f02db 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -1060,7 +1060,7 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec /* Delete existing entry */ if($delete){ - $this->rmdir($data['dn']); + $this->rmdir_recursive($data['dn']); } /* Create missing trees */ @@ -1074,7 +1074,7 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec $ret = $this->modify($data); } } - + show_ldap_error($this->get_error(),_("Ldap import failed")); return($ret); } @@ -1130,14 +1130,6 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec return $objectclasses; } - function create_snapshot($dn) - { - if ($this->dn_exists($dn) && $dn != ""){ - $data= preg_replace('/^dn:.*\n/', '', $this->gen_ldif($dn)); - echo base64_encode(gzcompress($data, 6)); - } - } - } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: