3

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)
Amruth
  • 77
  • 2
  • 7

1 Answers1

1

You must bind to the server for reading info. Just use “conn.bind()” to open the connection before printing.

cannatag
  • 1,528
  • 11
  • 17