mirror of https://github.com/veops/cmdb.git
关闭前端密码加密;加强 ldap 用户验证 (#216)
* [更新] python-ldap 更新到 ldap3 * [更新] 关闭前端密码加密;加强 ldap 用户验证 * Update app.js --------- Co-authored-by: sherlock <sherlock@gmail.com> Co-authored-by: pycook <pycook@126.com>
This commit is contained in:
parent
4754bb59f4
commit
92dc81ec53
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue