Ages ago I wrote a python program on v2.3 - it works fine. I was re-writing the original program to do something else and I noticed it failed using a newer version of python/python-ldap.
I'm not sure why, but would rather update the program than downgrade python module. Any pointers please. :?
this works:
python-ldap.i386 0:2.0.1-2
this fails:Code:python Python 2.3.4 (#1, Oct 11 2006, 06:18:43) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ldap >>> domain = "example.com" >>> l=ldap.initialize("ldap://server."+domain+":389") >>> l.simple_bind_s("domain\\username","password") >>>
Python-ldap version: 2.0.4-1ubuntu4
Code:Python 2.4.3 (#2, Oct 6 2006, 07:49:22) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ldap >>> domain = "example.com" >>> l=ldap.initialize("ldap://server."+domain+":389") Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'module' object has no attribute 'initialize'



LinkBack URL
About LinkBacks
Reply With Quote






