I am trying to authenticate the email id and password using PHP LDAP. Just I want to authenticate no need to access contacts or mails or calendars. Just need to confirm he is the valid user. Host name is correct. Port nos also correct. Please help. Please note my scenario
- my mail id is [email protected] and username is yyyyyy
my mail is hosted and handled by Parent company (mail.parentcompany.com )
$username = '[email protected]'; //If i use this line Unable to bind to server: Strong(er) authentication required $username = 'yyyyyy';//If i use this line Unable to bind to server: Invalid credentials $username = '[email protected]' //If i use this line Unable to bind to server: Invalid credentials $password = 'mypassword'; $ldap = ldap_connect("10.1.1.1",389) ; if ($ldap) { $ldapbind = ldap_bind($ldap,$username,$password ); if ($ldapbind) { echo "LDAP bind successful..."; } else { echo "LDAP bind failed..."; }}