Python ldap AttributeError

Posted by jenny on Stack Overflow See other posts from Stack Overflow or by jenny
Published on 2010-03-24T04:22:20Z Indexed on 2010/03/24 4:33 UTC
Read the original article Hit count: 467

Filed under:
|

Hi guys,

I have an python error AttributeError: 'module' object has no attribute 'initialize' I am running Python 2.6.2 on Solaris 10 UNIX and recently installed the pythonldap 2.3.9. The script is very basic, only has these 2 lines. Can anyone tell me why?? Traceback error below.

#!/usr/local/bin/python

import ldap, sys

con = ldap.initialize('ldap://localhost')

Traceback (most recent call last): File "./myldap.py", line 5, in con = ldap.initialize('ldap://localhost') AttributeError: 'module' object has no attribute 'initialize'

Regards, Jenny

© Stack Overflow or respective owner

Related posts about python

Related posts about openldap