Jump to content

ldap_bind returns error 49 Invalid credentials


dbair

Recommended Posts

I am able to connect to my AD server successfully.  This server serves multiple domains.

Example is user1@dom1.dom.net is able to successfully bind.

    user2@dom2.com is not able to bind but gets error 49: invalid credentials.

 

Using windows ldp.exe, I can connect successfully, then select bind from the connection menu, enter the username (user2), the account password, and the Domain (dom2.com) and the result indicated is successful.

 

Using php I attempt to bind using:

$adBind = ldap_bind($ad, $adUname, $ldappass);

Where $ad = successful connection resource, $adUname = user1@dom1.dom.com OR user2@dom2.com, $ldappass is the account password.

As user1 it is successful, with user2 it is unable to bind with error 49.

Any suggestions or help is greatly appreciated.

 

Thanks in advance!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.