Browse Source

Bugfix: use correct function and return value

master
PCoder 4 years ago
parent
commit
fd8f5fc1d3
  1. 5
      users/ldap_funcs.py

5
users/ldap_funcs.py

@ -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))
logger.error("So, returing UID={}".format(ret))
return ret
Loading…
Cancel
Save