Commit graph

19 commits

Author SHA1 Message Date
0cb0344ac8 Compute the next uidNumber from LDAP instead of a local file
The highest uidNumber was cached in dal/ldap_max_uid_file. That breaks
with more than one replica and is lost on every container restart. The
uniqueness check behind it searched base '' (the root DSE), which
OpenLDAP never matches, so nothing caught a stale file. The error path
also referenced a setting that does not exist.

Now a paged search over ENTIRE_SEARCH_BASE finds the highest uidNumber
on each activation. Numbering is unchanged: the next number is above
both LDAP_DEFAULT_START_UID and every existing uidNumber.
LDAP_MAX_UID_FILE_PATH is no longer used.
2026-11-06 15:03:57 +03:00
54aa8f474e added rest framework conf 2019-05-05 17:16:14 -04:00
PCoder
bf3b3b364f Get ENTIRE_SEARCH_BASE from env 2019-02-24 22:21:55 +01:00
PCoder
0591a186d8 Add EMAIL settings 2019-02-24 19:28:09 +01:00
PCoder
9ce45e6f56 Set EMAIL_FROM_ADDRESS from env 2019-02-24 18:41:07 +01:00
PCoder
7d09819ccb Improve logging 2019-02-24 17:23:41 +01:00
PCoder
0976d0dbcb Obtain some LDAP configs from env 2019-02-23 21:25:58 +01:00
PCoder
122ee37e48 Use LdapManager to change password 2019-02-23 19:50:42 +01:00
PCoder
113fa2c454 Pickup env variables and use them 2019-02-23 18:45:21 +01:00
PCoder
a3dca06c35 Use config instead of os.environ 2019-02-23 09:28:56 +01:00
PCoder
e8f12e18d2 Obtain ALLOWED_HOSTS from config 2019-02-22 06:06:36 +01:00
PCoder
00bc02541d Add basic AUTH_LDAP_USER_ATTR_MAP 2019-02-19 23:40:09 +01:00
PCoder
b60ffe6b58 Use python-decouple instead of django-dotenv + add logging 2019-02-19 23:15:07 +01:00
PCoder
c571cf5c1d Add bootstrap3 to INSTALLED_APPS 2019-02-18 22:01:42 +01:00
PCoder
c4c990a98d More correction 2019-02-17 18:25:12 +01:00
PCoder
876567f933 Correct the way we get ALLOWED_HOSTS 2019-02-17 18:20:56 +01:00
PCoder
5ec63d8536 Get ALLOWED_HOSTS and DEBUG from .env 2019-02-17 18:08:36 +01:00
PCoder
8b61db8dee Simplify getting LDAP_USE_TLS 2019-02-17 17:57:48 +01:00
PCoder
ace2fa6eb9 Move project files to root directory 2019-02-17 17:43:06 +01:00
Renamed from dal/dal/settings.py (Browse further)