Commit fd8f5fc1 authored by PCoder's avatar PCoder

Bugfix: use correct function and return value

parent 88a58595
......@@ -15,7 +15,7 @@ def create_user(user, password, firstname, lastname, email):
raise Exception('Could not connect to LDAP Server')
obj_new_user = ObjectDef(['inetOrgPerson', 'posixAccount'], conn)
uidNumber = settings.get_max_uid() + 1
uidNumber = get_max_uid() + 1
logger.debug("uidNumber={uidNumber}".format(uidNumber=uidNumber))
results = True
while results:
......@@ -80,4 +80,5 @@ def get_max_uid():
except FileNotFoundError as fnfe:
logger.error("File not found : " + str(fnfe))
ret = settings.LDAP_DEFAULT_START_UID
logger.error("So, returing UID={}".format(ret))
\ No newline at end of file
logger.error("So, returing UID={}".format(ret))
return ret
\ No newline at end of file
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