From ce2e77546ea245533e8ea60f60df69a346d99137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Pi=C3=A9tri?= Date: Wed, 17 Feb 2021 22:10:46 +0100 Subject: [PATCH] fix: :bug: Use correct settings in ldap_sync + typo --- ldap_sync/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap_sync/models.py b/ldap_sync/models.py index ac3e69a7..28192cba 100644 --- a/ldap_sync/models.py +++ b/ldap_sync/models.py @@ -135,7 +135,7 @@ def synchronise_user(sender, **kwargs): user_ldap.home_directory = user.home_directory user_ldap.mail = user.get_mail user_ldap.given_name = user.surname.lower() + "_" + user.name.lower()[:3] - user_ldap.gid = settings.LDAP["user_gid"] + user_ldap.gid = settings.DEFAULT_GID if "{SSHA}" in user.password or "{SMD5}" in user.password: # We remove the extra $ added at import from ldap user_ldap.user_password = user.password[:6] + user.password[7:]