--- title: "LDAPService" slug: "ldap-service" updated: 2026-07-28T12:11:17Z published: 2026-07-28T12:11:17Z canonical: "docs.lobstersoftware.com/ldap-service" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # LDAPService The LDAPService allows neutral access to various LDAP systems. In addition to access, it is also possible to install so-called watchers, which are addressed as a kind of trigger when changes in the LDAP system occur and can respond directly to the applications. Similar to the DatabaseService and other similar services, the LdapService is organized via aliases, each representing access to a particular LDAP system. ## XML configuration ### Adding an LDAP connection The following XML fragment adds a new LDAP connection to the LdapService. ```xml demo com.sun.jndi.ldap.LdapCtxFactory ldap://localhost:389/demo simple guest [possible further settings] ``` The arguments/parameters have the following meaning. | Argument/Parameter | Description | | --- | --- | | | The alias that represents the connection, here *demo*. | | LDAPFactory | The factory to use to create the LDAP connection. Usually, the default setting can be used. | | LDAPSourceURL | The URL that represents the connection to the LDAP system. These typically start with *ldap://*. More details can be found in the documentation of the LDAP system to be connected. **NOTE:** Multiple hosts can be specified separated by spaces. | | LDAPAuthentication | The authentication system to use. | | LDAPUser | The username that the service should use to log in to the LDAP system. | | LDAPUserPassword | The password that the service should use to log in to the LDAP system. | ### Adding an LDAP watcher If you want to add an LDAP watcher to an LDAP connection, you can do this with the following XML fragment, which must be inserted in the wildcard shown above. ```xml Person System ldap ``` The arguments have the following meaning. | Argument | Description | | --- | --- | | | The ID that is to be checked for changes. | | | The message context to be used when the message is sent in the event of a change. | | | The message queue is to be used when the message is sent in the event of a change. | ## Log level dependencies Changes to the log level of the LogService have no influence on the logging behavior of the LdapService. When setting the **Verbose** mode, the sending of a message via the MessageService is reported.