Browse Source

put gidNumber in

merge-requests/2/head
downhill 4 years ago
parent
commit
650b71a7c3
  1. 3
      nameko-func.py

3
nameko-func.py

@ -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…
Cancel
Save