From 240a99b6f35fe7a7de37c83e69471b84298d0f56 Mon Sep 17 00:00:00 2001 From: "rcritten@redhat.com" Date: Thu, 23 Aug 2007 11:57:25 -0400 Subject: Move add user logic to the server side --- ipa-python/ipaclient.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'ipa-python') diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py index d7450f5ca..dc8e1dc9b 100644 --- a/ipa-python/ipaclient.py +++ b/ipa-python/ipaclient.py @@ -71,25 +71,9 @@ class IPAClient: realm = config.config.get_realm() - # FIXME: This should be dynamic and can include just about anything - # Let us add in some missing attributes - if user.getValue('homedirectory') is None: - user.setValue('homedirectory', '/home/%s' % user.getValue('uid')) - if user.getValue('gecos') is None: - user.setValue('gecos', user.getValue('uid')) - - # FIXME: This can be removed once the DS plugin is installed - user.setValue('uidnumber', '501') - - # FIXME: What is the default group for users? - user.setValue('gidnumber', '501') - user.setValue('krbprincipalname', "%s@%s" % (user.getValue('uid'), realm)) - user.setValue('cn', "%s %s" % (user.getValue('givenname'), - user.getValue('sn'))) user_dict = user.toDict() - if user_dict.get('gn'): - del user_dict['gn'] + # dn is set on the server-side del user_dict['dn'] # convert to a regular dict before sending -- cgit