Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35027
| Date | 2012-12-17 18:09 -0500 |
|---|---|
| From | Jorge Alberto Diaz Orozco <jaorozco@estudiantes.uci.cu> |
| Subject | python ldap bind error |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1002.1355786210.29569.python-list@python.org> (permalink) |
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@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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
python ldap bind error Jorge Alberto Diaz Orozco <jaorozco@estudiantes.uci.cu> - 2012-12-17 18:09 -0500 Re: python ldap bind error Michael Ströder <michael@stroeder.com> - 2012-12-22 14:32 +0100
csiph-web