diff options
-rw-r--r-- | ipalib/plugins/user.py | 2 |
1 files changed, 2 insertions, 0 deletions
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]) |