python ldap bind error
Jorge Alberto Diaz Orozco
jaorozco at estudiantes.uci.cu
Mon Dec 17 18:09:55 EST 2012
hi there.
I'm working with python ldap and I need to authenticate my user.
this is the code I'm using.
import ldap
ldap.set_option(ldap.OPT_REFERRALS,0)
ldap.protocol_version = 3
conn = ldap.initialize("ldap://ldap.domain.cu")
conn.simple_bind_s("user at domain.cu","password")
every time I do this it gives me the next error:
ldap.INVALID_DN_SYNTAX: {'info': 'invalid DN', 'desc': 'Invalid DN syntax'}
can someone help me???
I don't know what I'm doing wrong
10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci
More information about the Python-list
mailing list