Code

Adapted rebind for secret passwords
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 16 May 2008 10:09:42 +0000 (10:09 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 16 May 2008 10:09:42 +0000 (10:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10929 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_plugin.inc

index 588a9e0bef73c33fd103395fa4d766b48527dd65..471f89f374729f846ad47c158851ebd37ac0e40c 100644 (file)
@@ -753,7 +753,7 @@ class plugin
   function rebind($ldap, $referral)
   {
     $credentials= LDAP::get_credentials($referral, $this->config->current['REFERRAL']);
-    if (ldap_bind($ldap, $credentials['ADMIN'], $credentials['PASSWORD'])) {
+    if (ldap_bind($ldap, $credentials['ADMIN'], $this->config->get_credentials($credentials['PASSWORD']))) {
       $this->error = "Success";
       $this->hascon=true;
       $this->reconnect= true;