Fork me on GitHub

daydayup863

人生就像一杯茶,不会苦一辈子,但总会苦一阵子。

0%

python3 ldap3 NTLM验证用户

1
2
3
4
5
6
7
8
from ldap3 import Server, Connection, NTLM, ALL

server = Server("xxx.xxx.xxx.xxx", 389, use_ssl=False, get_info=ALL)
print(server)
conn = Connection(server, user="Domain\\username", password="password", authentication=NTLM)
print(conn.bind())
print(conn.extend.standard.who_am_i())

-------------本文结束感谢您的阅读-------------
听说,打赏我的人都找到了真爱

欢迎关注我的其它发布渠道