index 3b05e2563a8b5a4f5709aec087c38785641e9c78..3765ed2d038cd79d69df3f66fcb801ce21560969 100644 (file)
$ldap = $this->config->get_ldap_link();
if (!$ldap->rename_dn($src_dn,$dst_dn)){
msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $src_dn, "", get_class()));
+ return(FALSE);
}
/* Get list of groups within this tree,
$ui->reset_acl_cache();
}
- echo sprintf("# %s --- %.6f<br>",__LINE__,(microtime(1) - $start));
- return(1);
+ return(TRUE);
}
/* Try to move the entry instead of copy & delete
-
- Currently still deactivated. !!
-
*/
- if(FALSE){
- return($this->rename($src_dn, $dst_dn));
+ if(TRUE){
+
+ /* Try to move with ldap routines, if this was not successfull
+ fall back to the old style copy & remove method
+ */
+ if($this->rename($src_dn, $dst_dn)){
+ return(TRUE)
+ }else{
+ // See code below.
+ }
}
/* Copy source to destination */