diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index 6a2c445103ccbdf074333d7e5d822963df69683c..2662f02db9754f30344e24b14d9f36adc66a7f48 100644 (file)
--- 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: