# 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:** 1\
**Showing post:** 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!

---

_[View the full topic](https://community.sonatype.com/t/how-to-configure-ldap-in-the-nexus-properties-file-of-nexus-repository-manager-3-to-take-effect/9512)._
