From 92dc81ec532e4780bad9d88d61f6f92b69ccd1de Mon Sep 17 00:00:00 2001 From: kdyq007 Date: Tue, 24 Oct 2023 19:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=89=8D=E7=AB=AF=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=8A=A0=E5=AF=86=EF=BC=9B=E5=8A=A0=E5=BC=BA=20ldap?= =?UTF-8?q?=20=E7=94=A8=E6=88=B7=E9=AA=8C=E8=AF=81=20(#216)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [更新] python-ldap 更新到 ldap3 * [更新] 关闭前端密码加密;加强 ldap 用户验证 * Update app.js --------- Co-authored-by: sherlock Co-authored-by: pycook --- cmdb-api/api/models/acl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmdb-api/api/models/acl.py b/cmdb-api/api/models/acl.py index a96bb1c..b0683ec 100644 --- a/cmdb-api/api/models/acl.py +++ b/cmdb-api/api/models/acl.py @@ -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: