summaryrefslogtreecommitdiffstats
path: root/ipa-server/xmlrpc-server
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-server/xmlrpc-server')
-rw-r--r--ipa-server/xmlrpc-server/funcs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py
index 22f52dae..a182d4b2 100644
--- a/ipa-server/xmlrpc-server/funcs.py
+++ b/ipa-server/xmlrpc-server/funcs.py
@@ -197,7 +197,7 @@ class IPAServer:
user = user[0]
dn="uid=%s,%s,%s" % (user['uid'], user_container,self.basedn)
- entry = ipaserver.ipaldap.Entry(str(dn))
+ entry = ipaserver.ipaldap.Entry(dn)
# some required objectclasses
entry.setValues('objectClass', 'top', 'posixAccount', 'shadowAccount', 'account', 'person', 'inetOrgPerson', 'organizationalPerson', 'krbPrincipalAux', 'krbTicketPolicyAux')
@@ -214,7 +214,7 @@ class IPAServer:
# fill in our new entry with everything sent by the user
for u in user:
- entry.setValues(str(u), str(user[u]))
+ entry.setValues(u, user[u])
if opts:
self.set_principal(opts['remoteuser'])