From: hickert Date: Mon, 29 Jun 2009 13:37:31 +0000 (+0000) Subject: Updated the rename7copy function of the plugin class. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=85993e1e59d7a19b66d9127477d3e1242016d2b2;p=gosa.git Updated the rename7copy function of the plugin class. -It now supports encrypted passwords. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13821 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 13a99228a..f0408cc51 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -803,7 +803,8 @@ class plugin ldap_set_rebind_proc($ds, array(&$this, "rebind")); } - $r=ldap_bind($ds,$this->config->current['ADMINDN'], $this->config->current['ADMINPASSWORD']); + $pwd = $this->config->get_credentials($this->config->current['ADMINPASSWORD']); + $r=ldap_bind($ds,$this->config->current['ADMINDN'], $pwd); $sr=ldap_read($ds, LDAP::fix($src_dn), "objectClass=*"); /* Fill data from LDAP */