PEAR::Auth ldap connection basics??
| From: | keith@setuplinux.com | Date: | Mon, 02 May 2005 17:38:26 +0000 |
| Subject: | PEAR::Auth ldap connection basics?? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-19045@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm having problems being able to connect and auth to a ldap source.
I've gone over the examples I could find on the peardocs and through
different google sources but can't seem to get it. I'm sure it's
something to do with my $param settings. here is what i"m using now:
$params = array(
"url" => "localhost",
"port" => "389",
"basedn" => "dc=domain,dc=com",
"userattr" => "uid",
);
I'm not sure how from these param's PEAR::AUTH can get username and
password, I'm guessing userattr is where userid comes from but I have no
idea where it's supposed to get password from. I'm using inetorgperson
for my ldap schema with these fields for user/pass:
uid = user ID
userPassword = password (current in plain text)
Can somebody point me in the right direction?
Thanks,
Keith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFCdmWS3q4RRxTNqvcRAp9SAJ9PDBjy6MuRirutzOzxWhp9uKFSswCggsqi
C2l+tOky4ZeWtJ67bQXv8sg=
=dB4r
-----END PGP SIGNATURE-----