Title: Invalid User Name
Last modified: May 20, 2019

---

# Invalid User Name

 *  Resolved [perkedel](https://wordpress.org/support/users/perkedel/)
 * (@perkedel)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/invalid-user-name-5/)
 * I have NADI 2.1.9 installed, ubuntu 18.04, WP 5.2, PHP 7.2.
    base dn is just 
   basic dc=example,dc=company,dc=com.
 * Verify credential works, Test authentication works.
    When it comes to login, 
   it doesn’t work. it gives invalid user name. I have no idea why this would not
   work.
 * I’m using sAMAccountName as the user name, with Automatic user creation, and 
   Use sAMAccountName for newly created users checked.
    I have Authorize by group
   membership enabled, which I thought it would cause it. I removed all groups and
   disable it, still get invalid user name.
 * I must be missing something, if anyone had experienced this, let me know.
 * On Documentation:
    There’s a typo here [https://active-directory-wp.com/docs/Networking/Encryption_with_TLS.html](https://active-directory-wp.com/docs/Networking/Encryption_with_TLS.html)
   where LDAPS encryption method port 3629, it should be 3269 for Global Catalog.
 * you may want to add ‘TLS_REQCERT never’ in /etc/ldap/ldap.conf since without 
   it, starttls would not work in 389. no need to put active directory certificate
   and ldap.conf in wordpress root per documentation.
    -  This topic was modified 6 years, 12 months ago by [perkedel](https://wordpress.org/support/users/perkedel/).
    -  This topic was modified 6 years, 12 months ago by [perkedel](https://wordpress.org/support/users/perkedel/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [perkedel](https://wordpress.org/support/users/perkedel/)
 * (@perkedel)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/invalid-user-name-5/#post-11561880)
 * ah, figured out what the problem was. built in admin has the same email as the
   AD admin. 🤣

Viewing 1 replies (of 1 total)

The topic ‘Invalid User Name’ is closed to new replies.

 * ![](https://ps.w.org/next-active-directory-integration/assets/icon-256x256.png?
   rev=2517660)
 * [Next Active Directory Integration](https://wordpress.org/plugins/next-active-directory-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/next-active-directory-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/next-active-directory-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/next-active-directory-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/next-active-directory-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/next-active-directory-integration/reviews/)

## Tags

 * [NADI](https://wordpress.org/support/topic-tag/nadi/)

 * 1 reply
 * 1 participant
 * Last reply from: [perkedel](https://wordpress.org/support/users/perkedel/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/invalid-user-name-5/#post-11561880)
 * Status: resolved