mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
IPA-EPN: Don't treat givenname differently
This was returning givenname as a list and not as a single string which messed up the templating. https://pagure.io/freeipa/issue/3687 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Francois Cami <fcami@redhat.com>
This commit is contained in:
parent
cb205cc5e4
commit
ba7974bfd1
@ -133,7 +133,7 @@ class EPNUserList:
|
||||
dict(
|
||||
uid=str(entry["uid"].pop(0)),
|
||||
cn=str(entry["cn"].pop(0)),
|
||||
givenname=str(entry.get("givenname", "")),
|
||||
givenname=str(entry["givenname"].pop(0)),
|
||||
sn=str(entry["sn"].pop(0)),
|
||||
krbpasswordexpiration=str(
|
||||
entry["krbpasswordexpiration"].pop(0)
|
||||
@ -438,7 +438,7 @@ class EPN(admintool.AdminTool):
|
||||
|
||||
search_base = DN(api.env.container_user, api.env.basedn)
|
||||
attrs_list = ["uid", "krbpasswordexpiration", "mail", "cn",
|
||||
"gn", "surname"]
|
||||
"givenname", "surname"]
|
||||
|
||||
search_filter = (
|
||||
"(&(!(nsaccountlock=TRUE)) \
|
||||
|
@ -373,7 +373,7 @@ class TestEPN(IntegrationTest):
|
||||
tasks.ipa_epn(self.master)
|
||||
for i in self.notify_ttls:
|
||||
validate_mail(self.master, i,
|
||||
"Hi user,\nYour login entry user%d is going" % i)
|
||||
"Hi test user,\nYour login entry user%d is going" % i)
|
||||
|
||||
def test_mailtest(self, cleanupmail):
|
||||
"""Execute mailtest to validate mail is working
|
||||
@ -422,7 +422,7 @@ class TestEPN(IntegrationTest):
|
||||
tasks.ipa_epn(self.master)
|
||||
for i in self.notify_ttls:
|
||||
validate_mail(self.master, i,
|
||||
"Hi user,\nYour login entry user%d is going" % i)
|
||||
"Hi test user,\nYour login entry user%d is going" % i)
|
||||
|
||||
def test_EPN_ssl(self, cleanupmail):
|
||||
"""Configure with ssl and test delivery
|
||||
@ -441,7 +441,7 @@ class TestEPN(IntegrationTest):
|
||||
tasks.ipa_epn(self.master)
|
||||
for i in self.notify_ttls:
|
||||
validate_mail(self.master, i,
|
||||
"Hi user,\nYour login entry user%d is going" % i)
|
||||
"Hi test user,\nYour login entry user%d is going" % i)
|
||||
|
||||
def test_EPN_delay_config(self, cleanupmail):
|
||||
"""Test the smtp_delay configuration option
|
||||
|
Loading…
Reference in New Issue
Block a user