Title: Authentication Failed
Last modified: August 21, 2016

---

# Authentication Failed

 *  [grenzenlos](https://wordpress.org/support/users/grenzenlos/)
 * (@grenzenlos)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/authentication-failed-2/)
 *     ```
       <?php
           $ldap = ldap_connect("mydomian.com");
           $username="webtest@mydomian.com";
           $password="tyest123";
   
           if($bind = ldap_bind($ldap, $username,$password ))
           echo "logged in";
           else
           echo "fail";
           echo "done";
           ?>
       ```
   
 * _[Please post code & markup between backticks or use the code button. Your posted
   code may now have been permanently damaged by the forum’s parser.]_
 * When I use this It doesn’t fail, but when I try your plugin it always fails. 
   already inputted every detail needed, any other way to make this work?
 * I entered the domain name, port, and Base DN still no go
 * [http://wordpress.org/extend/plugins/active-directory-integration/](http://wordpress.org/extend/plugins/active-directory-integration/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [grenzenlos](https://wordpress.org/support/users/grenzenlos/)
 * (@grenzenlos)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/authentication-failed-2/#post-3863809)
 * It now works but this error comes up:
 * Warning: ldap_search() [function.ldap-search]: Search: No such object in /home/
   intranet/public_html/wp-content/plugins/active-directory-integration/ad_ldap/
   adLDAP.php on line 1154
 * Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource
   in /home/intranet/public_html/wp-content/plugins/active-directory-integration/
   ad_ldap/adLDAP.php on line 1155
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/intranet/public_html/wp-content/plugins/active-directory-integration/
   ad_ldap/adLDAP.php:1154) in /home/intranet/public_html/wp-includes/pluggable.
   php on line 680
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/intranet/public_html/wp-content/plugins/active-directory-integration/
   ad_ldap/adLDAP.php:1154) in /home/intranet/public_html/wp-includes/pluggable.
   php on line 681
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/intranet/public_html/wp-content/plugins/active-directory-integration/
   ad_ldap/adLDAP.php:1154) in /home/intranet/public_html/wp-includes/pluggable.
   php on line 682
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/intranet/public_html/wp-content/plugins/active-directory-integration/
   ad_ldap/adLDAP.php:1154) in /home/intranet/public_html/wp-includes/pluggable.
   php on line 876
 *  [aswinnair](https://wordpress.org/support/users/aswinnair/)
 * (@aswinnair)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/authentication-failed-2/#post-3864143)
 * grenzenlos, can you tell what made it work? I tried everything but not working
   for me. Thanks a lot.
 *  Thread Starter [grenzenlos](https://wordpress.org/support/users/grenzenlos/)
 * (@grenzenlos)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/authentication-failed-2/#post-3864144)
 * Correct Base DN and removed the check in Use TLS (since our server didn’t use
   it), and assign proper role equivalents on the Authorization,
 * also using Theme My Login, just disable Ajax.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Authentication Failed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/active-directory-integration_e2ecae.
   svg)
 * [Active Directory Integration](https://wordpress.org/plugins/active-directory-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/active-directory-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/active-directory-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/active-directory-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/active-directory-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/active-directory-integration/reviews/)

## Tags

 * [ADI](https://wordpress.org/support/topic-tag/adi/)

 * 3 replies
 * 2 participants
 * Last reply from: [grenzenlos](https://wordpress.org/support/users/grenzenlos/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/authentication-failed-2/#post-3864144)
 * Status: not resolved