From d6dbe1212c5f89ac2d74c6f6ba1ca0d530754fe8 Mon Sep 17 00:00:00 2001 From: Fanch Date: Fri, 14 Nov 2025 21:20:52 +0100 Subject: [PATCH] chechpaekoldap: forwardings --- bin/checkPahekoLdap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/checkPahekoLdap.py b/bin/checkPahekoLdap.py index a545d0a..aecee5a 100755 --- a/bin/checkPahekoLdap.py +++ b/bin/checkPahekoLdap.py @@ -163,12 +163,12 @@ with Ldap() as ldap: ldap_forwardings = ldap.get_mail_forwardings() for ldap_user in ldap_forwardings: ldap_user = ldap_user[1] - paheko_entry = [x for x in membres if x["email"] == ldap_user["mail"][0].decode() or (x["emails_rattaches"] and ldap_user["mail"][0].decode() in x["emails_rattaches"])] + paheko_entry = [x for x in membres if x["email"] == ldap_user["mailAlias"][0].decode() or (x["forward"] and ldap_user["mailAlias"][0].decode() in x["forward"])] paheko_entry = paheko_entry[0] if len(paheko_entry) else None if paheko_entry: pass else: - not_in_paheko.append(ldap_user["mail"][0].decode() + " (forwarding)") + not_in_paheko.append(ldap_user["mailAlias"][0].decode() + " (forwarding)") print("Mails dans paheko mais pas dans le LDAP :")