-
Notifications
You must be signed in to change notification settings - Fork 127
Description
python-ldap version: 3.0.0
Python version: 3.5.2
The doc says ldap.initialize()
uses ldap.ldapobject.LDAPObject
and also says
Internally LDAPObject is set to SimpleLDAPObject by default.
It seems to me that by default implies that LDAPObject
can be changes to ReconnectLDAPObject
or custom class inheriting ldap.resiter.ResultProcessor
or any other valid classes and then I call ldap.initialize()
and successfully get a object of my registered class.
The way to change the default is not documented though.
I found that assigning a desired class to ldap.function.LDAPObject
causes the aforementioned behaviour.
But this method seems tricky to me and I wonder it is your expected usage of this library.
It would be great if the things below is clarified in the doc.
Being obvious also through API design would be superb.
- What is the recommended way to use classes other than
SimpleLDAPObject
? - Which is recommended whether calling
ldap.initialize()
or directly instantiatingldap.ldapobject.SimpleLDAPObject
or such?