From: <mi...@st...> - 2006-10-26 11:46:29
|
Jim, please stay on the python-ldap-dev mailing list (again Cc:-ed) with your responses so others can comment as well! Jim Boone wrote: > l.simple_bind(dn,oldpass) > valid=True > except ldap.LDAPError, e: > valid=False > if valid: > print "****************valid****************" > else: > print "--------------- nope ----------------" You probably want to use the synchronous method l.simple_bind_s(dn,oldpass). simple_bind() returns just a message ID which you have pass to result(). Ciao, Michael. |