Auth::ldap problem

From: Date: Tue, 06 May 2003 08:11:18 +0000
Subject: Auth::ldap problem
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5240@lists.php.net to get a copy of this message
Hello, I try to do an authentication with PEAR::Auth. It fails all the time. < CODE SAMPLE > require 'Auth/Auth.php'; $params = array( host => '1.1.1.1', port => '389', basedn => 'dc=xx,dc=xx', userdn => 'ou=people', userattr => 'employeenumber' ); $auth =& new Auth("LDAP", $params ); $auth->start(); if ( $auth->getAuth() ) { print "OK -- I logged in"; } < /CODE SAMPLE > I don't know how I can debug this. If do an print_r($auth). auth Object ( [expire] => 0 [expired] => [idle] => 0 [idled] => [storage] => auth_container_ldap Object ( [options] => Array ( [host] => 1.1.1.1 [port] => 389 [scope] => sub [basedn] => dc=xx,dc=xx [userdn] => ou=people [userattr] => employeenumber [useroc] => posixAccount [groupdn] => [groupattr] => cn [groupoc] => groupOfUniqueNames [memberattr] => uniqueMember [memberisdn] => 1 ) [conn_id] => Resource id #7 [ldap_search_func] => ldap_search [activeUser] => ) [loginFunction] => [showLogin] => 1 [status] => -3 [username] => tester [password] => tstpw [loginCallback] => [logoutCallback] => ) May someone can help me, how this can be worked out? I don't get any error messages. THX, in forward. Cheers Peter

« previous php.pear.general (#5240) next »