From 7ff033090c6ce0a140c7f208f1ed29c25b987148 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 35b764c2..edeb75f9 100644 --- a/moulinette/authenticators/ldap.py +++ b/moulinette/authenticators/ldap.py @@ -233,6 +233,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: