diff options
Diffstat (limited to 'ipalib/plugins/user.py')
-rw-r--r-- | ipalib/plugins/user.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 2b4ec5212..e48a408ce 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -24,6 +24,7 @@ Users (Identity) from ipalib import api, crud, errors from ipalib import Command, Object from ipalib import Flag, Int, Password, Str +from ipalib import uuid # parent DN _container_dn = api.env.container_user @@ -151,6 +152,8 @@ class user_add(crud.Create): # fill default group's gidNumber entry_attrs['gidnumber'] = group_attrs['gidnumber'] + entry_attrs['ipauniqueid'] = str(uuid.uuid1()) + # create user entry ldap.add_entry(dn, entry_attrs) |