Update pyLDAPmonitor.py

This commit is contained in:
Podalirius
2021-12-22 18:47:59 +01:00
committed by GitHub
parent 7e9c5ae708
commit 23edd44c7c
+1 -3
View File
@@ -487,9 +487,7 @@ if __name__ == '__main__':
)
logger.debug("Authentication successful!")
if "." not in args.auth_domain:
args.auth_domain += ".local"
dn = ','.join(["DC=%s" % part for part in args.auth_domain.split('.')])
dn = ldap_server.info.other["defaultNamingContext"]
lc = LDAPConsole(ldap_server, ldap_session, dn, logger=logger, page_size=args.page_size)