From: David L. <d...@ad...> - 2006-10-26 09:47:55
|
Jim Boon wrote: > Dear Mod, ignore that email, i just spotted it it's in the modify bit! Doh! but ... it was too late! (sorry, jim) David Leonard (itinerant moderator) Jim Boone wrote: > 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! > -- David Leonard d...@ad... Ph:+61 404 844 850 |