Re: Local Error in simple_bind_s();

2007-12-19 Thread Leons Petrazickis
Michael Ströder <[EMAIL PROTECTED]> wrote on 18/12/2007 05:05:16 PM: > Leons Petrazickis wrote: > > > > I've installed Thorsten Kurbad's python_ldap-2.3.1-py2.4-linux-i686.egg on > > my Python 2.4 install > > Which OS? Which Linux distribution? Which OpenLDAP libs? I was using: Ubuntu 7.10 with L

Re: Traceback with "No such object" although there is indeed such an object (works with "ldapsearch")

2007-12-19 Thread Martin Winkler
Please ignore my previous postings. My error was so trivial... I had different ldap-bases in my 2 examples. everything works fine now. sorry to have bothered you all. Martin - SF.Net email is sponsored by: Check out the ne

Re: Traceback with "No such object" although there is indeed such an object (works with "ldapsearch")

2007-12-19 Thread Martin Winkler
Sorry, forgot to mention some facts: python-ldap version: >>> ldap.VERSION 2 Python Version: Python 2.3.4 [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] $ ldapsearch -VV ldapsearch: @(#) $OpenLDAP: ldapsearch 2.2.13 (May 3 2007 01:38:21) $ [EMAIL PROTECTED]:/builddir/build/BUILD/openldap-2.2.1

Re: Traceback with "No such object" although there is indeed such an object (works with "ldapsearch")

2007-12-19 Thread David Leonard
Martin Winkler wrote: $ ldapsearch -x -LLL "(ou=People)" -b "dc=mydomain,dc=com" l = ldap.initialize("ldap://127.0.0.1";) l.simple_bind_s("","") l.search_s('o=mydomain, c=com', ldap.SCOPE_SUBTREE, '(ou=People)') because "o=mydomain,c=com" != "dc=mydomain,dc=com" ? -- David Le

Traceback with "No such object" although there is indeed such an object (works with "ldapsearch")

2007-12-19 Thread Martin Winkler
Hi all, Doing an ldapsearch in the shell works, but the same search in python does not. I tried for a couple of hours already to no avail, so I write here hoping that one of you might be able to give me help: Working example (in bash shell): $ ldapsearch -x -LLL "