Add warning when nothing is updated in LDAP

This commit is contained in:
Josué Tille 2019-12-23 10:56:25 +01:00 committed by Kay0u
parent 41b136ff1b
commit 23acece79d
No known key found for this signature in database
GPG key ID: 7FF262C033518333

View file

@ -216,6 +216,7 @@ class Authenticator(BaseAuthenticator):
ldif = modlist.modifyModlist(actual_entry[0], attr_dict, ignore_oldexistent=1) ldif = modlist.modifyModlist(actual_entry[0], attr_dict, ignore_oldexistent=1)
if ldif == []: if ldif == []:
logger.warning("Nothing to update in LDAP")
return True return True
try: try: