Title: Do not login (nempty attributes)
Last modified: September 21, 2016

---

# Do not login (nempty attributes)

 *  Resolved [Den Greyman](https://wordpress.org/support/users/grey4eg/)
 * (@grey4eg)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/do-not-login-nempty-attributes/)
 * Empty attributes
    Hey. If the authentication test I get a message saying that
   the attributes have not been received. This is not a message that the connection
   did not work, then you can fill in the order of connection. Attributes sAMAccountName
   and userPrincipalName filled. I can not understand what a problem. Unless expressly
   specify an incorrect password, the error is “Logon failed.”
 * Because of this problem, always I see the error:
 * >  Fatal error: Uncaught exception ‘Exception’ with message ‘sAMAccountName must
   > not be empty’ in /var/www/html/wp-content/plugins/next-active-directory-integration/
   > classes/Core/Assert.php:70 Stack trace: #0 /var/www/html/wp-content/plugins/
   > next-active-directory-integration/classes/Adi/User/Manager.php(101): NextADInt_Core_Assert::
   > notEmpty(”, ‘sAMAccountName …’) #1 /var/www/html/wp-content/plugins/next-active-
   > directory-integration/classes/Adi/User/Manager.php(161): NextADInt_Adi_User_Manager-
   > >findByActiveDirectoryUsername(”, ‘grey@tmn.host…’) #2 /var/www/html/wp-content/
   > plugins/next-active-directory-integration/classes/Adi/Authentication/LoginService.
   > php(489): NextADInt_Adi_User_Manager->createAdiUser(Object(NextADInt_Adi_Authentication_Credentials),
   > Object(NextADInt_Ldap_Attributes)) #3 /var/www/html/wp-content/plugins/next-
   > active-directory-integration/classes/Adi/Authentication/LoginService.php(458):
   > NextADInt_Adi_Authentication_LoginService->createOrUpdateUser(Object(NextADInt_Adi_Authentication_Credentials))#
   > 4 / in /var/www/html/wp-content/plugins/next-active-directory-integration/classes/
   > Core/Assert.php on line 70

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

 *  Thread Starter [Den Greyman](https://wordpress.org/support/users/grey4eg/)
 * (@grey4eg)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/do-not-login-nempty-attributes/#post-8205316)
 * My log file there
    [https://docviewer.yandex.ru/?url=ya-disk-public%3A%2F%2FhYOOOJM894XWly%2B7zbfkRYtZ9%2BBtz0lDqnmU0GCBEbc%3D&name=next-ad-int-log.txt&c=57e24472429d](https://docviewer.yandex.ru/?url=ya-disk-public%3A%2F%2FhYOOOJM894XWly%2B7zbfkRYtZ9%2BBtz0lDqnmU0GCBEbc%3D&name=next-ad-int-log.txt&c=57e24472429d)
 *  Thread Starter [Den Greyman](https://wordpress.org/support/users/grey4eg/)
 * (@grey4eg)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/do-not-login-nempty-attributes/#post-8205624)
 * I found that this happens when you try to use multiple domain controllers where
   you want to specify different base dn
    If use one controller (tmn.hostname.org)
   and one basedn (dc=tmn,dc=hostname,dc=org), everything works fine for users, 
   who Located in tmn.hostname.org and do not work for users, who located in hostname.
   org and others domain.
    -  This reply was modified 9 years, 9 months ago by [Den Greyman](https://wordpress.org/support/users/grey4eg/).
 *  Plugin Author [schakko](https://wordpress.org/support/users/schakko/)
 * (@schakko)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/do-not-login-nempty-attributes/#post-8205720)
 * Hi Den,
    Next ADI does only support *one* Active Directory instance with one 
   Base DN and multiple Active Directory BDCs. Next ADI’s Multisite supports multiple
   separated AD instances but only *one* instance per WordPress instance. If you
   need support for Multisite please purchase a proper support license ([https://www.active-directory-wp.com/product/enterprise-support-license/](https://www.active-directory-wp.com/product/enterprise-support-license/)).
   In any case, NADI does only support *one* AD for *each* WordPress instance, not
   multiple.

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

The topic ‘Do not login (nempty attributes)’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [schakko](https://wordpress.org/support/users/schakko/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/do-not-login-nempty-attributes/#post-8205720)
 * Status: resolved