Connecting to LDAP server using ldap3 python library where hostname is implicit

489 Views Asked by At

Consider a LDAP URL ldap:///CN=Services,CN=Configuration,DC=com?testfile;binary

I know /// means my local machine is already communicating with the LDAP server or it has some knowledge about the LDAP server.

Now, How do I connect using ldap3 library using ldap3.Server() or ldap3.Connection() objects?

In the documentation of ldap3, it is mentioned that hostname is not an optional parameter. I am wrong here?

0

There are 0 best solutions below