[python-ldap] RES: Help for get exception

Michael Ströder michael at stroeder.com
Thu Nov 28 09:38:55 CET 2013


Avner Gonçalves wrote:
> Now I'm using the same code "Demo/pyasn1/ppolicy.py", the "timeBeforeExpiration" and "graceAuthNsRemaining" are working perfectly, but when the password expires or the user is locked it back to return the exception of "INVALIDA_CREDENTIALS".
> 
> I can return an exception where I can identify that the User is expired or locked.

Ah, sorry, I forgot:
This is a deficiency of current python-ldap. It's not possible to receive
response control which were attached to an LDAP result message with resultCode!=0.

If anybody with C skills wants to look into that...

Ciao, Michael.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2398 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20131128/3357319c/attachment.bin>


More information about the python-ldap mailing list