Skip to content

Commit 88fa084

Browse files
committed
Add explanation how ldap_servers and ldap_backup work (processone/ejabberd#3977)
1 parent c3643ff commit 88fa084

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

content/admin/configuration/ldap.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ ldap_rootdn: "cn=Manager,dc=domain,dc=org"
5454
ldap_password: "**********"
5555
```
5656
57+
When there are several LDAP servers available as backup,
58+
set one in `ldap_servers` and the others in `ldap_backups`.
59+
At server start, ejabberd connects to all the servers listed in `ldap_servers`.
60+
If a connection is lost, ejabberd connects to the next server in `ldap_backups`.
61+
If the connection is lost, the next server in the list is connected,
62+
and this repeats infinitely with all the servers in `ldap_servers` and `ldap_backups`
63+
until one is successfully connected:
64+
65+
``` yaml
66+
ldap_servers:
67+
- ldap1.example.org
68+
69+
ldap_backups:
70+
- ldap2.example.org
71+
- ldap3.example.org
72+
```
73+
5774
## LDAP Authentication
5875

5976
You can authenticate users against an LDAP directory. Note that current

0 commit comments

Comments
 (0)