Fredrik Melander wrote: > From the command line (ldapsearch) I've got no problem becoming whatever > I want. The python-ldap module on the other hand gives me *almost* > anything I want. The only thing that I seem to not be able to get is the > DN.
The 2-tuples returned by ldap_search_s() etc. are (dn,entry) where entry is the dictionary {attrtype:[attrvalues]} and dn is simply a binary string containing the entry's distinguished name. See also: http://python-ldap.sourceforge.net/doc/html/ldap.html#example > The documentation makes a somewhat cryptic reference to a function > called ldap_get_dn(). Which documentation? ldap_get_dn() is part of the underlying libldap and you don't have to mess with that yourself. Ciao, Michael. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev