check username and password vie ldap php
Posted
by Elad
on Stack Overflow
See other posts from Stack Overflow
or by Elad
Published on 2010-05-09T12:28:14Z
Indexed on
2010/05/09
12:38 UTC
Read the original article
Hit count: 355
Hi all, I'm trying to connect to my AD server and check if username and password is correct when I'm trying to do that, It always tells me:
Unable to bind to server: Invalid credentials
My code is:
$ldapconn = ldap_connect($adserver,$adport); $ldapbind = @ldap_bind($ldapconn,"$username","$password");
when I tried to set a username with and without domain name in this variations: [email protected] domain\user user
when I trying to bind anonymously, Its ok. Do you have any suggestion here? Thank you very much. regards. Elad.
© Stack Overflow or respective owner