From: cajus Date: Tue, 16 Sep 2008 14:27:30 +0000 (+0000) Subject: Fixed login X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0a8d6693e3d5c6a71b3856ef7b62fad0fa37dc2b;p=gosa.git Fixed login git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12485 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index a4c6979ec..94309fe64 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -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 */