From fc7bf4f482a16687d5c105ba8547d61686dd23bf Mon Sep 17 00:00:00 2001 From: Tim Neumann Date: Mon, 22 Jan 2024 18:35:06 +0100 Subject: [PATCH] fix(userEP): Use mail attribute instead of tuple of uid and mail This bug was introduced in #14 by changing the signature of the called method. --- mail_alias_creator/entry_processors/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_alias_creator/entry_processors/user.py b/mail_alias_creator/entry_processors/user.py index 26c9b98..54279d1 100644 --- a/mail_alias_creator/entry_processors/user.py +++ b/mail_alias_creator/entry_processors/user.py @@ -29,7 +29,7 @@ def process(self, alias_address_provider): """Process.""" logger.debug("Processing user EP with {}".format(self.user)) from ..main import LDAP - mail = LDAP.get_user_primary_mails([self.user])[0] + mail = LDAP.get_user_primary_mails([self.user])[0][1] if mail is None: logger.error("User {} does not exist or has no primary mail.".format(self.user)) if CONFIG["main"].getboolean("strict"):