Python LDAP

J

Juan

Hi

I am trying to make a simple Python script using LDAP. The module is
imported OK, but when I call the function open or initialize, I get
this error:

Traceback (most recent call last):
File "/home/juan/workspace/amquare/src/nutum/amquare/amquare.py",
line 122, in <module>
conn.connect()
File "/home/juan/workspace/amquare/src/nutum/amquare/ldap_util.py",
line 39, in connect
self.conn = ldap.initialize(self.host, self.port)
File "/usr/lib/python2.5/site-packages/ldap/functions.py", line 87,
in initialize
return LDAPObject(uri,trace_level,trace_file,trace_stack_limit)
File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 70,
in __init__
self._l = ldap.functions._ldap_function_call(_ldap.initialize,uri)
File "/usr/lib/python2.5/site-packages/ldap/functions.py", line 59,
in _ldap_function_call
result = func(*args,**kwargs)
LDAPError: (2, 'No such file or directory')

What file is not found? I have lots of searches but don't get any
answer. Anyone know how to solve this?

Thanks in advance.
 
J

Juan

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,037
Messages
2,570,371
Members
47,013
Latest member
JewellChes

Latest Threads

Top