Fatal errors on bind
Jim Boone
jboone01 at bcuc.ac.uk
Wed Oct 25 17:19:29 CEST 2006
Hi Guys, I know this is a dumb question, but I'm stuck!
I have a python cgi script driven off a web form, works fine as long as
the credentials are correct for l.simple_bind, however if the wrong
password is entered it fatals with:
Traceback (most recent call last): File "password.py", line 83, in
? l.modify_s(dn,password) File
"/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line 285,
in modify_s self.result(msgid,all=1,timeout=self.timeout) File
"/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line 385,
in result return self._ldap_call(self._l.result,msgid,all,timeout)
File "/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line
94, in _ldap_call result = func(*args,**kwargs) ldap.OTHER:
{'info': 'NDS error: access denied (-168)', 'desc': 'Internal
(implementation specific) error'}
Surely it should return a failed code of some description? Obviously its
a Netware service, but other LDAP applications don't die under these
circumstances, so it must be crappy coding,
l.simple_bind(dn,password)
thats my bind line, I then carry on with some LDAP modify operations on
that user, should this be written differently?
Cheers for any input!
Jim
More information about the python-ldap
mailing list