For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > PEAR::Auth ldap connection basics??









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PEAR::Auth ldap connection basics??
Keith@Setuplinux.Com

2005-05-02, 3:58 pm

-----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

iD8DBQFCdmWS3q4RRxTNqvcRAp9SAJ9PDBjy6MuR
irutzOzxWhp9uKFSswCggsqi
C2l+tOky4ZeWtJ67bQXv8sg=
=dB4r
-----END PGP SIGNATURE-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com