Commit 0fb34dc5 authored by PCoder's avatar PCoder

Save uidNumber used for the latest user created for future reference

parent a2550e4b
......@@ -33,9 +33,9 @@ def create_user(user, password, firstname, lastname, email):
if results:
logger.debug("{uid} exists. Trying next.".format(uid=uidNumber))
uidNumber += 1
else:
logger.debug("{uid} does not exist. Using it".format(uid=uidNumber))
logger.debug("{uid} does not exist. Using it".format(uid=uidNumber))
set_max_uid(uidNumber)
w = Writer(conn, obj_new_user)
dn = 'uid=%s,ou=users,dc=ungleich,dc=ch' % user
w.new(dn)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment