From 23acece79dc8cdeace266d2a4404bebbb5f810a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 23 Dec 2019 10:56:25 +0100 Subject: [PATCH] Add warning when nothing is updated in LDAP --- moulinette/authenticators/ldap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moulinette/authenticators/ldap.py b/moulinette/authenticators/ldap.py index aac1b2ff..15834678 100644 --- a/moulinette/authenticators/ldap.py +++ b/moulinette/authenticators/ldap.py @@ -216,6 +216,7 @@ class Authenticator(BaseAuthenticator): ldif = modlist.modifyModlist(actual_entry[0], attr_dict, ignore_oldexistent=1) if ldif == []: + logger.warning("Nothing to update in LDAP") return True try: