put gidNumber in

This commit is contained in:
downhill 2018-10-24 16:20:23 +02:00
parent 72ac665453
commit 650b71a7c3

View file

@ -116,7 +116,8 @@ class CreateUser(object):
w[0].homeDirectory = '/home/%s' % user w[0].homeDirectory = '/home/%s' % user
# Set uidNumber as last used uidNumber+1 # Set uidNumber as last used uidNumber+1
w[0].uidNumber = self.get_new_uid_number(conn) 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(): if not w.commit():
conn.unbind() conn.unbind()
self.dispatch('ldap', '%s [Error CreateUser] Could not write new user %s to LDAP DB\n' % (datetime.now(), dn) ) self.dispatch('ldap', '%s [Error CreateUser] Could not write new user %s to LDAP DB\n' % (datetime.now(), dn) )