problem with ldap_sasl_bind

Ali Fawaz leelouch at hotmail.com
Fri May 13 16:24:14 CEST 2005


Hi,
I have a problem when I am trying to use ldap_sasl_bind

Traceback (most recent call last):
  File "test.py", line 33, in ?

l.sasl_interactive_bind_s("uid=afawaz,cn=users,dc=arteris,dc=net","Mona3592")
  File
"/home/afawaz/download/python-ldap-2.0.7/build/lib.linux-i686-2.3/ldap/ldapobject.py", 

line 196, in sasl_interactive_bind_s
    return
self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
  File
"/home/afawaz/download/python-ldap-2.0.7/build/lib.linux-i686-2.3/ldap/ldapobject.py", 

line 94, in _ldap_call
    result = func(*args,**kwargs)
AttributeError: 'str' object has no attribute 'mech'

here is my code
import ldap
l = ldap.open("ldapserver")
l.sasl_interactive_bind_s("uid=id,cn=users,dc=company,dc=net","")

do you have idea's thanks for help
Alain







More information about the python-ldap mailing list