Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35027

python ldap bind error

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jaorozco@estudiantes.uci.cu>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.116
X-Spam-Level *
X-Spam-Evidence '*H*': 0.78; '*S*': 0.01; 'error:': 0.05; 'python': 0.09; 'subject:error': 0.11; 'subject:python': 0.11; 'conn': 0.16; 'import': 0.21; 'user.': 0.23; 'header:User-Agent:1': 0.26; 'there.': 0.28; 'received:10.0.0': 0.28; "i'm": 0.29; 'code': 0.31; 'skip:l 40': 0.33; 'received:10.0': 0.33; 'to:addr:python- list': 0.33; 'wrong': 0.34; 'skip:l 30': 0.35; 'doing': 0.35; 'next': 0.35; 'header:Received:9': 0.36; 'skip:l 20': 0.38; 'received:10': 0.38; 'gives': 0.39; 'to:addr:python.org': 0.39; 'help': 0.40; 'received:unknown': 0.63; 'url:facebook': 0.67; 'received:200': 0.71; 'futuro,': 0.84; 'universidad': 0.84; 'url:photos': 0.84; 'url:cu': 0.91
X-Virus-Scanned amavisd-new at uci.cu
Date Mon, 17 Dec 2012 18:09:55 -0500
From Jorge Alberto Diaz Orozco <jaorozco@estudiantes.uci.cu>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version 1.0
To python-list@python.org
Subject python ldap bind error
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1002.1355786210.29569.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1355786210 news.xs4all.nl 6931 [2001:888:2000:d::a6]:41221
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:35027

Show key headers only | View raw


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 | NextNext in thread | Find similar | Unroll thread


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