[Auth:.LDAP]
| From: | Peter Valicek "- Snr. Cluster Engineer | Date: | Wed, 09 Jul 2003 15:22:03 +0000 |
| Subject: | [Auth:.LDAP] | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-6542@lists.php.net to get a copy of this message | ||
Hello,
is there something scrappy with Auth package?
I try to use it to authenticate against an LDAP Server.
Test Code:
require 'Auth/Auth.php';
$params = array(
host => 'x.x.x.x',
port => '389',
basedn => 'dc=x1,dc=x2',
userdn => 'ou=people',
userattr => 'xxx'
);
$auth =& new Auth('LDAP',$params);
$auth->start();
if ( $auth->getAuth() )
header("Location: isauth.php");
Error:
Fatal error: Call to a member function on a non-object in
/usr/local/lib/php/Auth/Auth.php on line 340
Have someone seen this as well?
Any hint to solve it?
Cheers
-Peter