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


Groups > comp.lang.python > #46018

RE: authentication with python-ldap

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jcasale@activenetwerx.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'correct.': 0.07; 'password)': 0.09; 'subject:skip:a 10': 0.09; 'python': 0.11; 'all).': 0.16; 'java.': 0.16; 'received:172.18.0': 0.16; 'subject:python': 0.16; 'code.': 0.18; 'fit': 0.20; '(the': 0.22; 'to:name:python-list@python.org': 0.22; 'java': 0.24; 'possibly': 0.26; 'pass': 0.26; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'testing': 0.29; 'specified': 0.30; '(which': 0.31; 'code': 0.31; '(maybe': 0.31; 'credentials': 0.31; '(e.g.': 0.33; 'subject:with': 0.35; 'problem.': 0.35; 'operations': 0.35; 'really': 0.36; 'accessing': 0.36; 'doing': 0.36; 'example,': 0.37; 'requirements': 0.37; 'server': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:unknown': 0.61; 'due': 0.66; 'invalid': 0.68; 'forgotten': 0.91; 'whereas': 0.91
X-Cloudmark-SP-Filtered true
X-Cloudmark-SP-Result v=1.1 cv=YS95TUGYX+MRkNY/meip+CxRTyy2F4x7QGJ4HWfgHsg= c=1 sm=1 a=CRTDazI5n6YA:10 a=k68E4Dg2cD4A:10 a=7PYXob_7ZXMA:10 a=BLceEmwcHowA:10 a=8nJEP1OIZ-IA:10 a=xqWC_Br6kY4A:10 a=oNw28mxuUhXRB3mVwYQ4Ag==:17 a=34s2kiDLPAGYbI8Ssw4A:9 a=wPNLvfGTeEIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
From "Joseph L. Casale" <jcasale@activenetwerx.com>
To "python-list@python.org" <python-list@python.org>
Subject RE: authentication with python-ldap
Thread-Topic authentication with python-ldap
Thread-Index AQHOWXIhvNeReVLBDk+oTdO7V6kDEZkWNrYu
Date Sat, 25 May 2013 18:25:18 +0000
References <36e9845b-4b22-406d-b38c-056341454fd2@ucimail4.uci.cu>
In-Reply-To <36e9845b-4b22-406d-b38c-056341454fd2@ucimail4.uci.cu>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [172.18.0.200]
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
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.2149.1369506325.3114.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369506325 news.xs4all.nl 15897 [2001:888:2000:d::a6]:44858
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:46018

Show key headers only | View raw


> I have been doing the same thing and I tried to use java for testing the credentials and they are correct. It works perfectly with java.
> I really don´t know what we´re doing wrong.
>
>
> You are accessing a protected operation of the LDAP server
> and it (the server) rejects it due to invalid credentials.
> You may have forgotten to pass on credentials (e.g. a password)
> or the credentials do not fit to the specified user
> (maybe the user does not exist at all).

Depending on the directory (which we don't know) and the code as well, the way you auth
might be the problem. Possibly Java met the directory requirements with the methods you
used whereas they did not with Python given your code.

For example, certain operations in AD require specific transports to be used...

jlc

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE: authentication with python-ldap "Joseph L. Casale" <jcasale@activenetwerx.com> - 2013-05-25 18:25 +0000

csiph-web