Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default the LDAP server listens on port 10389 (unencrypted or StartTLS) and 10636 (SSL). It is quite common to run LDAP on 389, which is the well-known port for this protocol. Of course other options are imaginable as well. Changing the LDAP port is a good example for adjusting the existing Spring configuration as introduced in the last section.

Just pick the following line within the "configurationldapServer"-bean from the server.xml fileVersion 1.5.0:

Code Block
xml
xml
<property  <ldapServer nameid="ldapPortldapServer" value="10389" />

Version 1.5.1:

Code Block
xmlxml

<bean id="ldapConfiguration" 

            class="org.apache.directory.server.ldap.LdapConfiguration">

    <transports>
  <!-- The port to run the LDAP protocol on. --<tcpTransport address="0.0.0.0" port="10389" nbThreads="8" backLog="50" enableSSL="false"/>
    <property  <tcpTransport nameaddress="ipPortlocalhost" valueport="1038910636" enableSSL="true"/>
    </transports>
    ...
  </bean>ldapServer>

and change the value values of ldapPort/ipPort port to your needs. You have to restart the server afterwards in order to take this change effect.

...