Hi Richard

If you're using Apache I'd recommend using .htaccess files
that way there is no php needed.

AuthName "Your Directory Service - Authentication"
AuthType basic
AuthLDAP on
AuthLDAPServer ldap://ldap.yourdomain.com/
AuthLDAPBase "ou=Your Division, ou=Staff, o=Your Company, c=US"

require valid-user

If on the other hand you actually want to retrieve data from your LDAP 
system then i suggest reading the manual. it's not actually a lot harder 
that connecting to RDBMS.

I managed to get a working script straight off the manual page.
http://www.php.net/manual/en/ref.ldap.php

Joshua




Richard Whittaker wrote:
> Greetings:
> 
> We've got a Netware 6.0 server setup, and this is our network's primary means of 
>authentication of users, and I would like to use NDS (eDirectory) to authenticate 
>various web pages of ours that are written in PHP. I know that NDS interfaces with 
>LDAP, and was wondering if I could use this for my authentication... Does anyone have 
>any practical examples of authentication using LDAP/NDS?...
> 
> Any help would be appreciated!
> 
> Thanks,
> Richard W.
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to