authentication - no errors
mengelhart at katahdinsoftware.com
Wed May 7 19:41:02 CEST 2003
I'm still losing my mind with why my python-ldap won't throw
authentication errors when invalid passwords are passed
I removed all my openldap data from the /var/db/openldap directories
and subdirectories and created a basic
slapd.conf file as shown here:
rootdn "cn=Directory Manager,o=number1customer.com"
index uid,cn,sn,givenName pres,eq,sub
access to *
by self write
by dn="cn=Directory Manager,o=number1customer.com" write
by * none
Then did this code
l = ldap.open("127.0.0.1")
# you should set this to ldap.VERSION2 if you're using a v2
l.protocol_version = ldap.VERSION2
username = "cn=bogus-cn, o=wrongcompany.com"
password = "sjadfkjasfjkl"
print "got here"
except ldap.LDAPError, e:
This output "got here" with no exceptions. I still can't figure out
how to force python-ldap to throw an exception upon entering an invalid
dn or password or combination thereof.
Any help would be greatly appreciated. This is definitely a
python-ldap issue because when I try and do an ldapsearch on the
command line it gives an error message saying that the dn or password
Any help or ideas of where to look would be greatly appreciated. I'm
running this on Mac OS X (Darwin). Everything else works perfectly.
More information about the python-ldap