# Dex - ldap: invalid password for user error

**URL:** <https://discourse.openondemand.org/t/dex-ldap-invalid-password-for-user-error/1752>\
**Category:** Get Help\
**Created:** [October 25, 2021, 6:46pm UTC](https://discourse.openondemand.org/t/dex-ldap-invalid-password-for-user-error/1752 "2021-10-25T18:46:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandermitre](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/sandermitre/32/864_2.png) [@sandermitre](https://discourse.openondemand.org/u/sandermitre)\
**Post date:** [October 25, 2021, 6:46pm UTC](https://discourse.openondemand.org/t/dex-ldap-invalid-password-for-user-error/1752/1 "2021-10-25T18:46:28Z")

</div>

I’m have a mostly successful dex configuration working, but for some reason the password portion is not working.

level=info msg=“performing ldap search xxx sub (&(objectClass=posixAccount)(uid=myname))”  
time=“2021-10-25T13:26:07Z” level=info msg=“username “myname” mapped to ldap-user”  
time=“2021-10-25T13:26:07Z” level=error msg="ldap: invalid password for user “ldap-user”

I believe this may due to the fact that the ldap server we are querying is one set up in front of AD which adds some special fields for our setup, but may not include the passwords.

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [October 25, 2021, 6:57pm UTC](https://discourse.openondemand.org/t/dex-ldap-invalid-password-for-user-error/1752/2 "2021-10-25T18:57:44Z")

</div>

Not sure. What do the logs on the LDAP server say? If it’s an intermediary, it may have a log entry for the same failure.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [April 23, 2022, 6:58pm UTC](https://discourse.openondemand.org/t/dex-ldap-invalid-password-for-user-error/1752/3 "2022-04-23T18:58:16Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
