mirror of
https://github.com/capricornxl/ad-password-self-service.git
synced 2025-08-12 06:55:50 +08:00
修复一些BUG
将修改密码的代码逻辑做复用处理,简化代码。
This commit is contained in:
@@ -52,8 +52,8 @@ class AdOps(object):
|
||||
authentication=self.authentication, raise_exceptions=True)
|
||||
except LDAPOperationResult as e:
|
||||
raise LDAPOperationResult("LDAPOperationResult: " + str(e))
|
||||
except Exception:
|
||||
raise Exception('出现错误:无法连接到AD控制器。')
|
||||
except Exception as e:
|
||||
raise Exception('LDAP Exception:无法连接到AD控制器 --- {}' .format(e))
|
||||
|
||||
def ad_auth_user(self, username, password):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user