# Auth0 LDAP Connector Fails to Authenticate Users from Trusted Domain (Wrong Username Error)

**URL:** <https://community.auth0.com/t/auth0-ldap-connector-fails-to-authenticate-users-from-trusted-domain-wrong-username-error/189151>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [July 14, 2025, 11:46am UTC](https://community.auth0.com/t/auth0-ldap-connector-fails-to-authenticate-users-from-trusted-domain-wrong-username-error/189151 "2025-07-14T11:46:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dedysobr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dedysobr/32/70918_2.png) [@dedysobr](https://community.auth0.com/u/dedysobr)\
**Post date:** [July 14, 2025, 11:46am UTC](https://community.auth0.com/t/auth0-ldap-connector-fails-to-authenticate-users-from-trusted-domain-wrong-username-error/189151/1 "2025-07-14T11:46:32Z")

</div>

We’re experiencing an issue with the Auth0 LDAP Connector when attempting to authenticate users from a child domain within the same Active Directory forest.

We have a forest with multiple domains:

- **Parent domain:** `example.com`

- **Child domain:** `ua.example.com`

- he LDAP Connector is installed on a server in the **parent domain** , and is configured with the following:

- `LDAP_URL`: `ldaps://DCCE01.example.com:3269`

- `LDAP_BASE`: `DC=example,DC=com`

- `username_field`: `userPrincipalName`

- The domain controller (`DCCE01`) **is a Global Catalog** (verified via PowerShell and GUI).

- We use `test89@ua.example.com` as a test user. We verified via PowerShell (`DirectorySearcher`) that this user can be found using `userPrincipalName`.

### **Issue**

Despite being searchable through LDAP using GC port 3269, the Auth0 LDAP Connector fails with:

user [test89@ua.example.com](mailto:test89@ua.example.com): Authentication attempt failed. Reason: wrong username

Please help us determine why the connector is failing to authenticate users from a trusted child domain, even though they are present in the Global Catalog and searchable by `userPrincipalName`.

Would appreciate any insight, debug suggestions, or additional settings we may have missed.

---

<div class="post-metadata">

**Author:** ![dedysobr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dedysobr/32/70918_2.png) [@dedysobr](https://community.auth0.com/u/dedysobr)\
**Post date:** [July 14, 2025, 4:37pm UTC](https://community.auth0.com/t/auth0-ldap-connector-fails-to-authenticate-users-from-trusted-domain-wrong-username-error/189151/2 "2025-07-14T16:37:52Z")

</div>

The user support is really cool.

They found a solution for me in a short time

“LDAP\_USER\_BY\_NAME”: “(userPrincipalName={0})”,

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [July 17, 2025, 4:52pm UTC](https://community.auth0.com/t/auth0-ldap-connector-fails-to-authenticate-users-from-trusted-domain-wrong-username-error/189151/3 "2025-07-17T16:52:13Z")

</div>

Thanks for sharing the solution with the rest of us!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 31, 2025, 4:53pm UTC](https://community.auth0.com/t/auth0-ldap-connector-fails-to-authenticate-users-from-trusted-domain-wrong-username-error/189151/4 "2025-07-31T16:53:00Z")

</div>

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