Setting Advanced LDAP Connection Properties in Nexus Repository

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.

Generic JNDI Properties

LDAP Specific Properties

Setting Advanced LDAP Context Properties

  1. 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 
  2. 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}
  3. 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.

  1. 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 
  2. On a new line, add the following:
    nexus.ldap.env.java.naming.referral=ignore
  3. Restart Nexus Repository

 

 

Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    wognin a

    How can I change the Windows NT service name while installing Nexus OSS 3.0.0-b2016011501 by running the following command :

    c:\nexusdir>nexus.exe /install

    Thankins a lot.

    Wognin

  • 0
    Avatar
    Rich Seddon

    You can specify the service name as an argument after /install:

     

    c:\nexusdir>nexus.exe /install nexus-service

  • 0
    Avatar
    Peter Lynch

    We are closing this article for comments.

    If you have a support license, please contact us by submitting a support ticket.

    If you do not have a support license, please use our Nexus Users List or our other free support resources.

Article is closed for comments.