...
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 | ||||
---|---|---|---|---|
| ||||
<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.
...