This section briefly describes how to enable and disable anonymous access.
Anonymous access to the server is enabled by default. This includes read and write access!
If you use the server standalone configured with a server.xml file, you can disable anonymous binds by changing the value for property allowAnonymousAccess in the Spring bean definition for bean defaultDirectoryService, as depicted in the following fragment:
A restart of the server is necessary for this change to take effect. Afterwards, all clients have to provide their name (distinguished name) and password in order to bind to the directory service.
Learn more about authentication option in the corresponding section of this guide here.