I am getting none as output for below code
from ldap3 import Server, Connection, ALL, NTLM
server = Server('servername', get_info=ALL)
conn = Connection(server, user="uname", password="pwd", authentication=NTLM)
print(server.info)
I am getting none as output for below code
from ldap3 import Server, Connection, ALL, NTLM
server = Server('servername', get_info=ALL)
conn = Connection(server, user="uname", password="pwd", authentication=NTLM)
print(server.info)
You must bind to the server for reading info. Just use “conn.bind()” to open the connection before printing.