Re: Apache DS ignores attrsonly

2009-07-13 Thread Thorsten Kampe
* Michael Ströder (Mon, 13 Jul 2009 13:23:26 +0200) > Thorsten Kampe wrote: > > It does work against eDirectory and Active Directory (as mentioned). > > ...and OpenLDAP. So the likelihood is very high that python-ldap does > not have a bug. > > > "ldapsearch -A" also works against Apache DS. The

Re: Apache DS ignores attrsonly

2009-07-13 Thread Michael Ströder
Thorsten Kampe wrote: > It does work against eDirectory and Active Directory (as mentioned). ...and OpenLDAP. So the likelihood is very high that python-ldap does not have a bug. > "ldapsearch -A" also works against Apache DS. The question is still: is > that a Python-LDAP or Apache DS bug? It

Re: Apache DS ignores attrsonly

2009-07-13 Thread Thorsten Kampe
* Michael Ströder (Mon, 13 Jul 2009 11:51:29 +0200) > Which versions of Python and python-ldap are you using? Python 2.6.2, python-ldap 2.3.8, Apache DS 1.5.4 > I've tested it with my local OpenLDAP server with Python 2.6 and > python-ldap 2.3.8 built against OpenLDAP RE24 libs: > > >>> l.searc

Re: Apache DS ignores attrsonly

2009-07-13 Thread Thorsten Kampe
* Michael Ströder (Mon, 13 Jul 2009 11:20:44 +0200) > Thorsten Kampe wrote: > > [4]>>> connection.search_s('ou=system', ldap.SCOPE_SUBTREE, > > filterstr='(cn=*)', attrlist = ['cn'], attrsonly = True) > > Just a wild guess: Could you please try again with attrsonly=1. Note > that this API has its

Re: Apache DS ignores attrsonly

2009-07-13 Thread Michael Ströder
Michael Ströder wrote: > Thorsten Kampe wrote: >> [4]>>> connection.search_s('ou=system', ldap.SCOPE_SUBTREE, >> filterstr='(cn=*)', attrlist = ['cn'], attrsonly = True) > > Just a wild guess: Could you please try again with attrsonly=1. Note > that this API has its roots in Python 1.x times wher

Re: Apache DS ignores attrsonly

2009-07-13 Thread Michael Ströder
Thorsten Kampe wrote: > [4]>>> connection.search_s('ou=system', ldap.SCOPE_SUBTREE, > filterstr='(cn=*)', attrlist = ['cn'], attrsonly = True) Just a wild guess: Could you please try again with attrsonly=1. Note that this API has its roots in Python 1.x times where there was no Boolean True/False