From fd0a6b484909ebbba1099733b22eeae58a5da671 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Tue, 15 Feb 2011 15:11:43 -0500 Subject: 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. --- ipalib/plugins/user.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/plugins') diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index da7b92aa5..e74b8bed2 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -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]) -- cgit