diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-08-17 15:32:05 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-08-17 15:32:05 -0700 |
commit | 5f0f192ae3c8aa44868b7b3b86e71523fc55515b (patch) | |
tree | a99a70cd9ce3a93feef7562f42f6fa5dda1135f0 /ipa-server/ipa-gui | |
parent | a0e2fa00f1005bf7d5853c83ff0f567663352e92 (diff) | |
download | freeipa-5f0f192ae3c8aa44868b7b3b86e71523fc55515b.tar.gz freeipa-5f0f192ae3c8aa44868b7b3b86e71523fc55515b.tar.xz freeipa-5f0f192ae3c8aa44868b7b3b86e71523fc55515b.zip |
change strings to be encoded using value.encode("utf-8").
fix update to set 'cn' instead of 'sn'.
remove str() in funcs.add_user().
Diffstat (limited to 'ipa-server/ipa-gui')
-rw-r--r-- | ipa-server/ipa-gui/ipagui/controllers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-server/ipa-gui/ipagui/controllers.py b/ipa-server/ipa-gui/ipagui/controllers.py index ae8b088b7..36c1bf84b 100644 --- a/ipa-server/ipa-gui/ipagui/controllers.py +++ b/ipa-server/ipa-gui/ipagui/controllers.py @@ -49,7 +49,7 @@ def set_ldap_value(hash, key, value): """Converts unicode strings to normal strings (because LDAP is choking on unicode strings""" if value != None: - value = str(value) + value = value.encode('utf-8') hash[key] = value @@ -137,7 +137,7 @@ class Root(controllers.RootController): # # this is a hack until we decide on the policy for names/cn/sn/givenName # - set_ldap_value(new_user, 'sn', + set_ldap_value(new_user, 'cn', "%s %s" % (kw.get('givenname'), kw.get('sn'))) orig_user = to_ldap_hash(orig_user) |