put gidNumber in
This commit is contained in:
parent
72ac665453
commit
650b71a7c3
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ class CreateUser(object):
|
|||
w[0].homeDirectory = '/home/%s' % user
|
||||
# Set uidNumber as last used uidNumber+1
|
||||
w[0].uidNumber = self.get_new_uid_number(conn)
|
||||
w[0].gidNumber = randint(1200,50000)
|
||||
# gidNumber for users created by userservice, nice and clear
|
||||
w[0].gidNumber = 10004
|
||||
if not w.commit():
|
||||
conn.unbind()
|
||||
self.dispatch('ldap', '%s [Error CreateUser] Could not write new user %s to LDAP DB\n' % (datetime.now(), dn) )
|
||||
|
|
Loading…
Reference in a new issue