A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/305773.html below:

using python_ldap for authentication

using python_ldap for authentication using python_ldap for authenticationjeanmarc.pouchoulon jeanmarc.pouchoulon at free.fr
Thu Sep 1 04:52:12 EDT 2005
> but it seems to succeed whatever the password I'm providing :-(
> 
> How to simply assess the binding really occured ?
It should work...
If you are anxious have a look to your ldapserver logs, you can see the 
bind . Try with an account that have modify rights et do a modify 
request if it fails
you know there is a problem...
> Do I need to start doing stuff with the "l" object to catch an error
> and realize I'm not in fact connected : that's my current workaround
> but I'm not very proud of it...
Try:
	Your code .... initialize
         bind

except ldap.LDAPError,e:
	.....
see
http://homepage.mac.com/mengelhart/python-ldap-samples.html
jmp


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4