Re: Re:
| From: | John Nichel | Date: | Tue, 11 May 2004 13:37:37 +0000 |
| Subject: | Re: Re: | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185912@lists.php.net to get a copy of this message | ||
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) {
$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
Don't hijack threads.
--
John C. Nichel
KegWorks.com
716.856.9675
john@kegworks.com