chore: cleanup

This commit is contained in:
transcaffeine 2021-05-23 12:31:17 +02:00
parent 89672b1306
commit 9962313f31
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
2 changed files with 10 additions and 12 deletions

View File

@ -1,11 +1,10 @@
click 7.1.2
fastapi 0.65.1
h11 0.12.0
pip 21.1.1
pyasn1 0.4.8
pydantic 1.8.2
python3-ldap 0.9.8.4
setuptools 49.2.1
starlette 0.14.2
typing-extensions 3.10.0.0
uvicorn 0.13.4
click==7.1.2
fastapi==0.65.1
h11==0.12.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pydantic==1.8.2
python-ldap==3.3.1
starlette==0.14.2
typing-extensions==3.10.0.0
uvicorn==0.13.4

View File

@ -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):
changes = [( ldap.MOD_REPLACE, 'userPassword', bytes(str(new_pass), 'utf-8') )]
result = conn.modify_ext_s(dn, changes)
print(changes, result)