Re: LDAP (NDS) authentication example...
| From: | joshua | Date: | Tue, 10 Sep 2002 04:28:53 +0000 |
| Subject: | Re: LDAP (NDS) authentication example... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115812@lists.php.net to get a copy of this message | ||
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.