[更新] 关闭前端密码加密;加强 ldap 用户验证

This commit is contained in:
kdyq007
2023-10-20 20:09:08 +08:00
parent a5f7b6d3d7
commit 1aa144cb3e
2 changed files with 3 additions and 1 deletions

View File

@@ -74,6 +74,8 @@ class UserQuery(BaseQuery):
conn = Connection(server, user=who, password=password)
conn.bind()
if conn.result['result'] != 0:
raise LDAPBindError
conn.unbind()
if not user: