# How to configure ldap in the nexus.properties file of Nexus Repository Manager 3 to take effect

**URL:** <https://community.sonatype.com/t/how-to-configure-ldap-in-the-nexus-properties-file-of-nexus-repository-manager-3-to-take-effect/9512>\
**Category:** Sonatype Nexus Repository\
**Tags:** ldap\
**Created:** [October 28, 2022, 5:19am UTC](https://community.sonatype.com/t/how-to-configure-ldap-in-the-nexus-properties-file-of-nexus-repository-manager-3-to-take-effect/9512 "2022-10-28T05:19:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yudeye2019](https://avatars.discourse-cdn.com/v4/letter/y/d26b3c/32.png) [@yudeye2019](https://community.sonatype.com/u/yudeye2019)\
**Post date:** [October 28, 2022, 5:19am UTC](https://community.sonatype.com/t/how-to-configure-ldap-in-the-nexus-properties-file-of-nexus-repository-manager-3-to-take-effect/9512/1 "2022-10-28T05:19:52Z")

</div>

I’m a novice. I don’t know how to set the configuration information of ldap to make it work in nexus. I’ve searched Google for a long time, but I haven’t found the answer I want.  
I referred to this article: [Setting Advanced LDAP Connection Properties in Nexus Repository Manager – Sonatype Support](https://support.sonatype.com/hc/en-us/articles/216597138?input_string=set+the+connection+of+ldap+in+the+nexus.properties+configuration+file+of+nexus+repository+manager+3), but it seems that I need the basic knowledge of Java, which I am very deficient in.  
In my nexus.properties configuration file, I set the following parameters:

```auto
nexus.ldap.env.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
nexus.ldap.env.java.naming.provider.url=ldap://ldap-service.ldap.svc.cluster.local:389
nexus.ldap.env.java.naming.security.authentication=simple
nexus.ldap.env.java.naming.security.credentials=adminpassword ******
nexus.ldap.env.java.naming.security.principal=cn=admin,dc=xyz,dc=com
nexus.scripts.allowCreation=true

```

In addition to this information, how can I set information such as searchfilter and basedn in nexus.properties?  
Thanks for any 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:** [October 28, 2022, 1:57pm UTC](https://community.sonatype.com/t/how-to-configure-ldap-in-the-nexus-properties-file-of-nexus-repository-manager-3-to-take-effect/9512/2 "2022-10-28T13:57:44Z")

</div>

You’ll need to restart Nexus.

---

<div class="post-metadata">

**Author:** ![yudeye2019](https://avatars.discourse-cdn.com/v4/letter/y/d26b3c/32.png) [@yudeye2019](https://community.sonatype.com/u/yudeye2019)\
**Post date:** [October 28, 2022, 2:50pm UTC](https://community.sonatype.com/t/how-to-configure-ldap-in-the-nexus-properties-file-of-nexus-repository-manager-3-to-take-effect/9512/3 "2022-10-28T14:50:51Z")

</div>

Thanks for reminding me！  
In fact, after I change the configuration file, I will restart nexus, but it still doesn’t seem to work.

---

<div class="post-metadata">

**Author:** ![darshanapatel8292](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@darshanapatel8292](https://community.sonatype.com/u/darshanapatel8292)\
**Post date:** [March 26, 2024, 4:57am UTC](https://community.sonatype.com/t/how-to-configure-ldap-in-the-nexus-properties-file-of-nexus-repository-manager-3-to-take-effect/9512/4 "2024-03-26T04:57:16Z")

</div>

I am working on nexus PRO 3.65.0.2  
Is this possible to configure LDAP using nexus.properties file?
