# LDAP server connection issue

**URL:** <https://community.sonatype.com/t/ldap-server-connection-issue/11561>\
**Category:** Sonatype Nexus Repository\
**Created:** [November 6, 2023, 6:43pm UTC](https://community.sonatype.com/t/ldap-server-connection-issue/11561 "2023-11-06T18:43:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![goutami.manjunath](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@goutami.manjunath](https://community.sonatype.com/u/goutami.manjunath)\
**Post date:** [November 6, 2023, 6:43pm UTC](https://community.sonatype.com/t/ldap-server-connection-issue/11561/1 "2023-11-06T18:43:03Z")

</div>

i am using sonatype nexus repository 3 docker image in k8s cluster. i am trying to enable ldap authentication for users to login using jumpcloud(LDAP server) credentials. i can establish the connection with LDAP server but cannot add user and group settings.  
this is the error that am i getting while tying to map user and group.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/2/2950ae93342259d004e734d9a31be51a625e6ad3.png)

can someone help?

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [November 7, 2023, 2:12pm UTC](https://community.sonatype.com/t/ldap-server-connection-issue/11561/2 "2023-11-07T14:12:47Z")

</div>

That suggests you don’t have your configuration correct - this is something you’d need to talk to your LDAP admin to determine what these values would be.

---

<div class="post-metadata">

**Author:** ![goutami.manjunath](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@goutami.manjunath](https://community.sonatype.com/u/goutami.manjunath)\
**Post date:** [November 10, 2023, 8:51am UTC](https://community.sonatype.com/t/ldap-server-connection-issue/11561/3 "2023-11-10T08:51:19Z")

</div>

i am the ldap admin. FYI: connection step is good. i have pasted the screenshot. only issue with user and group settings.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/3/3c6ecf3e264ccd4ae3235ed1e242693c8294e5b2.png)

these are the values that i am passing for user and group setting  
configuration template: **generic ldap server**  
user relative DN: **ou=Users,o=\*\*\*\*\*\*\*,dc=jumpcloud,dc=com**  
map ldap group as roles : **uncheck**  
all other values are preset.

can you suggest whats wrong in this

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [November 10, 2023, 5:29pm UTC](https://community.sonatype.com/t/ldap-server-connection-issue/11561/4 "2023-11-10T17:29:27Z")

</div>

The user DN is relative to the base connection DN. So you should leave the “dc=jumpcloud,dc=com” off of the user DN.
