Versions Compared

Key

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

...

Enable/disable anonymous binds

Anonymous access is disabled enabled by default. Changing this is one of the basic configuration tasks. If you use the server standalone configured with a server.xml file, you can enable/disable it by changing the value for property allowAnonymousAccess in the Spring bean definition for bean configuration defaultDirectoryService, as depicted in the following fragment:

Code Block
xml
xml
<bean  <defaultDirectoryService id="configurationdirectoryService" instanceId="default"
  class="org.apache.directory.server.configuration.MutableServerStartupConfiguration">                           ...
    ...                  
    <property nameallowAnonymousAccess="allowAnonymousAccess" value="true" />
false"
                           ...>
</bean>

A restart of the server is necessary for this change to take effect.

...

Assume anonymous binds are disabled , as configured by default in ApacheDS 1.5, and our sample partition Seven Seaes present in the server. Here is an example with a search operation performed by a command line tool as a client. It tries to connect anonymously (no DN and password given, i.e. options -D and -w missing) to the server. Afterwards the entry ou=people,o=sevenSeas should be displayed.

...