Visit my.sonatype.com for documentation on Nexus Repository version 2.
Nexus Repository 2.13 and newer allow setting advanced LDAP connection settings using properties. Use this advanced option when a specific setting is not exposed in the user interface.
The properties that can be set are implementation specific and apply to every LDAP Server connection configured. Consult the provider documentation to determine the available properties and their meaning.
Setting Advanced LDAP Context Properties
-
Nexus Repository 2.x+: Edit
{NEXUS_HOME}/conf/nexus.properties
Nexus Repository 3.0.x: Edit{NEXUS_HOME}/etc/org.sonatype.nexus.cfg
Nexus Repository 3.1.x+: Edit{SONATYPE_WORK}/etc/nexus.properties
- For each LDAP JNDI context environment property you would like to customize, add a new line in the following format:
nexus.ldap.env.{NAME OF ENVIRONMENT PROPERTY}={VALUE}
- Restart Nexus Repository.
Example: Changing the ldap.naming.referral environment property
Suppose you would like to change the value of java.naming.referral from the default of follow
to ignore
.
-
Nexus Repository 2.x+: Edit
{NEXUS_HOME}/conf/nexus.properties
Nexus Repository 3.0.x: Edit{NEXUS_HOME}/etc/org.sonatype.nexus.cfg
Nexus Repository 3.1.x+: Edit{SONATYPE_WORK}/etc/nexus.properties
- On a new line, add the following:
nexus.ldap.env.java.naming.referral=ignore
- Restart Nexus Repository