Re: Local error in simple_bind_s() continued

2008-03-17 Thread Leons Petrazickis
Michael Ströder <[EMAIL PROTECTED]> wrote on 03/03/2008 03:37:28 PM: > Leons Petrazickis wrote: > > l = ldap.initialize("ldap://bluepages.ibm.com:636/",trace_level=2); > > [..] > > ldapsearch -h bluepages.ibm.com -x -b "ou=bluepages,o=ibm.com" -s sub > > "(sn=leonsp)" cn tieline -d 1 > > BTW: The

Re: Local error in simple_bind_s() continued

2008-03-03 Thread Michael Ströder
Leons Petrazickis wrote: > l = ldap.initialize("ldap://bluepages.ibm.com:636/",trace_level=2); > [..] > ldapsearch -h bluepages.ibm.com -x -b "ou=bluepages,o=ibm.com" -s sub > "(sn=leonsp)" cn tieline -d 1 BTW: The connection parameters are not the same! You would have to test with ldapsearch -h

Re: Local error in simple_bind_s() continued

2008-03-03 Thread Michael Ströder
Leons Petrazickis wrote: > > I just installed Suse Linux Enterprise Desktop 10. It comes with OpenLDAP > 2.3.19 and Python 2.4. On top of that, I built the latest CVS checkout of > python-ldap. Could you please try to install Ralf Haferkamp's recent OpenLDAP RPMs for SLE 10 from here and rebuild

Local error in simple_bind_s() continued

2008-03-03 Thread Leons Petrazickis
Hello, I just installed Suse Linux Enterprise Desktop 10. It comes with OpenLDAP 2.3.19 and Python 2.4. On top of that, I built the latest CVS checkout of python-ldap. I am getting the same error as with Ubuntu. OpenLDAP works, but python-ldap crashes. Previous thread:

Re: Local Error in simple_bind_s();

2007-12-30 Thread Michael Ströder
Leons Petrazickis wrote: > > I now have a fresh Ubuntu 7.10 install with OpenLDAP 2.1 in /usr/lib and a > manually compiled OpenLDAP 2.3.39 in /usr/local/lib. I hope you did not install python-ldap from Ubuntu. Do you have more than one version of Python on this system? Did you really configur

Re: Local Error in simple_bind_s();

2007-12-29 Thread Leons Petrazickis
Hi Michael, I now have a fresh Ubuntu 7.10 install with OpenLDAP 2.1 in /usr/lib and a manually compiled OpenLDAP 2.3.39 in /usr/local/lib. The appropriate dirs are in setup.cfg: library_dirs = /usr/local/lib include_dirs = /usr/local/include /usr/include/sasl ldd _ldap.so says that python-ldap

Re: Local Error in simple_bind_s();

2007-12-22 Thread Michael Ströder
Leons Petrazickis wrote: > Michael Ströder <[EMAIL PROTECTED]> wrote on 20/12/2007 06:19:10 AM: > >> Ok. Just for the records: What kind of LDAP server product is this? Is >> LDAPv3 connect definitely not possible? > > I was mistaken earlier. LDAPv3 connect is possible. It just has to use > simpl

Re: Local Error in simple_bind_s();

2007-12-21 Thread Leons Petrazickis
Michael Ströder <[EMAIL PROTECTED]> wrote on 20/12/2007 06:19:10 AM: > Ok. Just for the records: What kind of LDAP server product is this? Is > LDAPv3 connect definitely not possible? I was mistaken earlier. LDAPv3 connect is possible. It just has to use simple authentication, not SASL. > No. I'

Re: Local Error in simple_bind_s();

2007-12-21 Thread Michael Ströder
Leons Petrazickis wrote: >> _ldap.so >> ldap/ >> ldif.py* >> dsml.py* >> ldapurl.py* > > I removed these. I then moved the OpenLDAP libs from /usr/lib to > /usr/lib-backup, and removed all the extraneous copies lying around. > [..] > "/usr/lib/python2.4/site-packages/python_ldap-2.3.1-py2.4-linux-

Re: Local Error in simple_bind_s();

2007-12-20 Thread Michael Ströder
Leons Petrazickis wrote: > 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? > >

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: Local Error in simple_bind_s();

2007-12-18 Thread Michael Ströder
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? > And this is the log output: Cannot see anything obviously wrong. > ldap.LOCAL_ERROR: {'desc': 'Local error'

Re: Local Error in simple_bind_s();

2007-12-18 Thread Leons Petrazickis
et

Re: Local Error in simple_bind_s();

2007-12-15 Thread Michael Ströder
Leons Petrazickis wrote: > ldap.LOCAL_ERROR: {'desc': 'Local error'} > [..] > But OpenLDAP commands work fine from the command prompt: > [..] > I am using the python-ldap package on Ubuntu Gutsy. I have no clue which version of python-ldap Ubuntu is using. Nor do I know whether they applied any

Local Error in simple_bind_s();

2007-12-14 Thread Leons Petrazickis
When I run this Python script under either 2.5 or 2.4: import ldap ds = ldap.initialize("ldap://foobar.ibm.com:636";) ds.protocol_version = ldap.VERSION2 ds.simple_bind_s() I get this error: Traceback (most recent call last): File "test.py", line 13, in ds.simple_bind_s(); File "/usr/l