# LDAP client authentication fails

**URL:** <https://forum.inductiveautomation.com/t/ldap-client-authentication-fails/22015>\
**Category:** Ignition\
**Created:** [January 21, 2019, 12:56pm UTC](https://forum.inductiveautomation.com/t/ldap-client-authentication-fails/22015 "2019-01-21T12:56:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.iannozzi](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d.iannozzi](https://forum.inductiveautomation.com/u/d.iannozzi)\
**Post date:** [January 21, 2019, 12:56pm UTC](https://forum.inductiveautomation.com/t/ldap-client-authentication-fails/22015/1 "2019-01-21T12:56:07Z")

</div>

Hi all

I have configured the use of active directory using LDAP in the gateway.  
I can see the list of active directory users and the test authentication process is working fine.

However when i run the client the authentication fails…  
The gateway log starts as following…  
java.lang.Exception: Authentication using username and password is required.  
at com.inductiveautomation.ignition.gateway.authentication.impl.InternalUserSource.authenticate(InternalUserSource.java:152)  
at com.inductiveautomation.ignition.gateway.authentication.UserSourceWrapper.authenticate(UserSourceWrapper.java:200)  
at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.Login.client(Login.java:120)

- I am logging in thru the client using the format : domainName\username

what am I doing wrong ?

thanks and regards  
Dominic

---

<div class="post-metadata">

**Author:** ![pphillips](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pphillips](https://forum.inductiveautomation.com/u/pphillips)\
**Post date:** [January 22, 2019, 3:33pm UTC](https://forum.inductiveautomation.com/t/ldap-client-authentication-fails/22015/2 "2019-01-22T15:33:49Z")

</div>

Have you tried it with just the username in the client login? My experience is that is all that is required.

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [January 22, 2019, 3:41pm UTC](https://forum.inductiveautomation.com/t/ldap-client-authentication-fails/22015/3 "2019-01-22T15:41:32Z")

</div>

Ignition will auto-append the domain depending on your usersource configuration. So you would not want to use domain\user if you are using the default settings.

Check out the Username Prefix/Suffix, Automatic suffix settings on the docs page. [https://docs.inductiveautomation.com/display/DOC80/Active+Directory+Authentication](https://docs.inductiveautomation.com/display/DOC80/Active+Directory+Authentication)

---

<div class="post-metadata">

**Author:** ![d.iannozzi](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d.iannozzi](https://forum.inductiveautomation.com/u/d.iannozzi)\
**Post date:** [January 22, 2019, 4:28pm UTC](https://forum.inductiveautomation.com/t/ldap-client-authentication-fails/22015/4 "2019-01-22T16:28:28Z")

</div>

spot on guys!..working fine now!
