Versions Compared

Key

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

...

Pressing OK stores the new value. Close the connection and shutdown the server.

Step two:

...

If you try to restart the server now (Don't!), it will fail because of the wrong password in the server configuration (LdapAuthenticationException in the logs). It has to be adjusted to the new value first. Open the conf/server.xml file and set the admin password (property java.naming.security.credentials in the environment), currently set to "secret", to the new value. Please note that you have to use the plain text form.

Here is the XML fragment:

...


<bean id="environment" 
      class="org.springframework.beans.factory.config.PropertiesFactoryBean">
  <property name="properties">
    <props>
      <prop key="java.naming.security.authentication">simple</prop>
      <prop key="java.naming.security.principal">uid=admin,ou=system</prop>
      <prop key="java.naming.security.credentials">secret</prop>
      ...

Save the file after the change and start the server again. It should work now.

...

Verification

Verify that you can login as admin with the new password. With Apache Directory Studio, you can change the properties of the existing connection profile via a right click in the Connections view and a selection of the Properties menu item. The following dialog appears:

...