You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Installation
18
18
1. Install using ``pip install django-python3-ldap``.
19
19
2. Add ``'django_python3_ldap'`` to your ``INSTALLED_APPS`` setting.
20
20
3. Set your ``AUTHENTICATION_BACKENDS`` setting to ``("django_python3_ldap.auth.LDAPBackend",)``
21
-
4. Configure the settings for your LDAP server (see Available settings, below).
21
+
4. Configure the settings for your LDAP server(s) (see Available settings, below).
22
22
5. Optionally, run ``./manage.py ldap_sync_users`` (or ``./manage.py ldap_sync_users <list of user lookups>``) to perform an initial sync of LDAP users.
23
23
6. Optionally, run ``./manage.py ldap_promote <username>`` to grant superuser admin access to a given user.
24
24
@@ -31,8 +31,8 @@ Available settings
31
31
32
32
.. code:: python
33
33
34
-
# The URL of the LDAP server.
35
-
LDAP_AUTH_URL="ldap://localhost:389"
34
+
# The URL of the LDAP server(s). List multiple servers for high availability ServerPool connection.
35
+
LDAP_AUTH_URL=["ldap://localhost:389"]
36
36
37
37
# Initiate TLS on connection.
38
38
LDAP_AUTH_USE_TLS=False
@@ -215,8 +215,8 @@ The returned list of search filters will be AND'd together to make the final sea
215
215
How it works
216
216
------------
217
217
218
-
When a user attempts to authenticate, a connection is made to the LDAP
219
-
server, and the application attempts to bind using the provided username and password.
218
+
When a user attempts to authenticate, a connection is made to one of the listed LDAP
219
+
servers, and the application attempts to bind using the provided username and password.
220
220
221
221
If the bind attempt is successful, the user details are loaded from the LDAP server
222
222
and saved in a local Django ``User`` model. The local model is only created once,
0 commit comments