ADS authentication
| From: | Kuldeep Singh Tomar | Date: | Tue, 11 May 2004 15:16:51 +0000 |
| Subject: | ADS authentication | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185922@lists.php.net to get a copy of this message | ||
Hi,
Sorry for it. Can I get some help on this?
Regards,
Kuldeep
John Nichel wrote:
Kuldeep Singh Tomar wrote:Hi All, I am working on one Document Management System which I am running on linux. I have added this system to win2000 Active Directory server. Now, I want to authenticate my all users for DMS through this Win2k server and search on directory server. So, I am trying to connect to Active Directory server using php-ldap function, but every time it says that my password is not correct. I am using the example given at the site: |function checkNTUser ($username,$password) { $ldapserver = 'Your Server'; $ds=ldap_connect($ldapserver); if ($ds) {Don't hijack threads.$dn="cn=$username,cn=Users, DC=[sitename], DC=[sitesuffix]"; $r=@ldap_bind($ds,$dn,$password); if ($r) { return true; } else { return false; }} } I am really in crisis. Can somebody on list help me.Thanks in advance. With Regards, Kuldeep Singh