Re: problems with Net::LDAP / Net::LDAP Development

From: Date: Fri, 08 Sep 2006 06:18:05 +0000
Subject: Re: problems with Net::LDAP / Net::LDAP Development
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43916@lists.php.net to get a copy of this message
Hello! Jan Wagner wrote:
Your connection parameters are wrong. They changed in CVS. Have a look at $_config in class Net_LDAP.
I tried binding to the directory server using parms binddn and bindpw but this did not change anything. I had a look at the source code. Using dn and password instead of binddn and bindpw should not be a problem because the old parms get mapped to the new ones in the _setConfig function: foreach ($config as $k => $v) {
            if (isset($this->_config[$k])) {
                $this->_config[$k] = $v;
            } else {
                // map old (Net_LDAP) parms to new ones
                switch($k) {
                    case "dn":
                        $this->_config["binddn"] = $v;
                        break;
                    case "password":
                        $this->_config["bindpw"] = $v;
                        break;
                    case "tls":
                        $this->_config["starttls"] = $v;
                        break;
                    case "base":
                        $this->_config["basedn"] = $v;
                        break;
                }
            }
        }
Bye Sebastian -- Sebastian Schneider <schneider@dvz.fh-aachen.de> ========================================================== Studentische Hilfskraft in der Netzzentrale der FH Aachen eMail: schneider@dvz.fh-aachen.de Telefon: (+49) 0241 / 6009 5 24 42 ==========================================================

« previous php.pear.dev (#43916) next »