forked from finallycoffee/self-service-api
chore: cleanup
This commit is contained in:
parent
89672b1306
commit
9962313f31
@ -1,11 +1,10 @@
|
|||||||
click 7.1.2
|
click==7.1.2
|
||||||
fastapi 0.65.1
|
fastapi==0.65.1
|
||||||
h11 0.12.0
|
h11==0.12.0
|
||||||
pip 21.1.1
|
pyasn1==0.4.8
|
||||||
pyasn1 0.4.8
|
pyasn1-modules==0.2.8
|
||||||
pydantic 1.8.2
|
pydantic==1.8.2
|
||||||
python3-ldap 0.9.8.4
|
python-ldap==3.3.1
|
||||||
setuptools 49.2.1
|
starlette==0.14.2
|
||||||
starlette 0.14.2
|
typing-extensions==3.10.0.0
|
||||||
typing-extensions 3.10.0.0
|
uvicorn==0.13.4
|
||||||
uvicorn 0.13.4
|
|
||||||
|
@ -29,4 +29,3 @@ def _connect_ldap_simple_bind(server_uri: str, bind_dn: str, bind_pw: str):
|
|||||||
def _update_ldap_userPassword(conn, dn: str, new_pass: str):
|
def _update_ldap_userPassword(conn, dn: str, new_pass: str):
|
||||||
changes = [( ldap.MOD_REPLACE, 'userPassword', bytes(str(new_pass), 'utf-8') )]
|
changes = [( ldap.MOD_REPLACE, 'userPassword', bytes(str(new_pass), 'utf-8') )]
|
||||||
result = conn.modify_ext_s(dn, changes)
|
result = conn.modify_ext_s(dn, changes)
|
||||||
print(changes, result)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user