Code

Fixed login
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Sep 2008 14:27:30 +0000 (14:27 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Sep 2008 14:27:30 +0000 (14:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12485 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_config.inc

index a4c6979ec5b52dbcf65a64b30fe1260bf12d3131..94309fe64afc660c9ce8359d9664251fa0545217 100644 (file)
@@ -252,7 +252,7 @@ class config  {
 
       /* Build new connection */
       $this->ldap= ldap_init ($this->current['SERVER'], $this->current['BASE'],
-          $this->current['ADMIN'], $this->get_credentials($this->current['PASSWORD']));
+          $this->current['ADMINDN'], $this->get_credentials($this->current['ADMINPASSWORD']));
 
       /* Check for connection */
       if (is_null($this->ldap) || (is_int($this->ldap) && $this->ldap == 0)){
@@ -358,11 +358,11 @@ class config  {
     $this->current['BASE']= @LDAP::convert($this->current['BASE']);
 
     /* Parse LDAP referral informations */
-    if (!isset($this->current['ADMIN']) || !isset($this->current['PASSWORD'])){
+    if (!isset($this->current['ADMINDN']) || !isset($this->current['ADMINPASSWORD'])){
       $url= $this->current['SERVER'];
       $referral= $this->current['REFERRAL'][$url];
-      $this->current['ADMIN']= $referral['ADMIN'];
-      $this->current['PASSWORD']= $referral['PASSWORD'];
+      $this->current['ADMINDN']= $referral['ADMINDN'];
+      $this->current['ADMINPASSWORD']= $referral['ADMINPASSWORD'];
     }
 
     /* Load server informations */