[Tutor] LDAP search with ldap library module failing

Dominik George nik at naturalnet.de
Mon Aug 5 12:45:42 CEST 2013


Hi,

> Now, if I search fog cn=ab*, a much limited search it will return the search
> results. Thinking that it could be a limitation from the server side, I've done
> the same search with ldapsearch in bash, and it gets what is expected.

Are you sure it gets what is expected? ldapsearch limits the results to
500 - maybe the LDAP library does not. How many entries do you expect?

> I am using ipython, and python 2.6 in a linux OS.

Why are you using such an outdated version? Any chance you upgrade to
Python 2.7?

> My question is: How can I try to debug this issue?

There are several ways, Two are reading the LDAP server logs, and
tcpdumping the connection to see if anything happens. I am pretty
certain that this is not an issue with your code.

> The error message is: ('EOF in multi-line statement', (379, 0))

> --> 519     return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout)

This is why I say "never use ipython". The error message is complete
non-sense.

-nik

-- 
* concerning Mozilla code leaking assertion failures to tty without D-BUS *
<mirabilos> That means, D-BUS is a tool that makes software look better
            than it actually is.

PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17  FD26 B79A 3C16 A0C4 F296
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 905 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/tutor/attachments/20130805/23d17ca8/attachment.pgp>


More information about the Tutor mailing list