This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import struct | |
| import os | |
| import datetime | |
| import base64 | |
| from binascii import unhexlify | |
| from pyasn1.type.univ import noValue | |
| from pyasn1.codec.der import decoder, encoder | |
| from ldap3 import Server, Connection, NTLM, ALL, SASL, KERBEROS | |
| from ldap3.core.results import RESULT_STRONGER_AUTH_REQUIRED | |
| from ldap3.operation.bind import bind_operation |