mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix setattr mail bug in user plugin.
The email normalizer expects a list or tuple, but when using setattr it gets a string and interates on it as if it was a list/tuple.
This commit is contained in:
parent
aab27a76e2
commit
fd0a6b4849
@ -221,6 +221,8 @@ class user(LDAPObject):
|
||||
# check if default email domain should be added
|
||||
if email and 'ipadefaultemaildomain' in config:
|
||||
norm_email = []
|
||||
if not isinstance(email, (list, tuple)):
|
||||
email = [email]
|
||||
for m in email:
|
||||
if m.find('@') == -1:
|
||||
norm_email.append(m + u'@' + config['ipadefaultemaildomain'][0])
|
||||
|
Loading…
Reference in New Issue
Block a user