修改utils.ad_ops self.doamin:

如果doamin\\user中doamin部分被写成域名格式, 只提取DOMAIN部分
This commit is contained in:
Leven
2021-12-24 22:57:35 +08:00
parent b589a49072
commit 4ed8c1e0e2
2 changed files with 4 additions and 2 deletions

View File

@@ -45,7 +45,8 @@ class AdOps(object):
"""
self.use_ssl = use_ssl
self.port = port
self.domain = domain
# 如果doamin\\user中doamin部分被写成域名格式 只提取DOMAIN部分
self.domain = domain.split('.')[0] if domain is not None else None
self.user = user
self.password = password
self.authentication = authentication