Generate missing LDAP users
This commit is contained in:
@@ -23,6 +23,8 @@ def auth_api(url, data=None, json=None):
|
||||
logger.info('Auth {} - {} - {}'.format(url, e.__class__.__name__, str(e)))
|
||||
logger.info('Auth timeout occured, assuming it worked and returning 200.')
|
||||
return 200
|
||||
except KeyboardInterrupt:
|
||||
raise
|
||||
except BaseException as e:
|
||||
logger.error('Auth {} - {} - {}'.format(url, e.__class__.__name__, str(e)))
|
||||
return None
|
||||
|
@@ -16,6 +16,8 @@ def ldap_api(route, data):
|
||||
url = secrets.LDAP_API_URL + route
|
||||
r = requests.post(url, data=data, headers=headers, timeout=10)
|
||||
return r.status_code
|
||||
except KeyboardInterrupt:
|
||||
raise
|
||||
except BaseException as e:
|
||||
logger.error('LDAP {} - {} - {}'.format(url, e.__class__.__name__, str(e)))
|
||||
return None
|
||||
|
Reference in New Issue
Block a user