PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` # -*- coding: utf-8 -*- """ ldap.controls.pwdpolicy - classes for Password Policy controls (see http://tools.ietf.org/html/draft-vchu-ldap-pwd-policy) See http://www.python-ldap.org/ for project details. $Id: pwdpolicy.py,v 1.4 2014/03/12 21:34:07 stroeder Exp $ """ __all__ = [ 'ExpirationWarningControl' ] # Imports from python-ldap 2.4+ import ldap.controls from ldap.controls import RequestControl,ResponseControl,ValueLessRequestControl,KNOWN_RESPONSE_CONTROLS class PasswordExpiringControl(ResponseControl): """ Indicates time in seconds when password will expire """ controlType = '2.16.840.1.113730.3.4.5' def decodeControlValue(self,encodedControlValue): self.gracePeriod = int(encodedControlValue) KNOWN_RESPONSE_CONTROLS[PasswordExpiringControl.controlType] = PasswordExpiringControl class PasswordExpiredControl(ResponseControl): """ Indicates that password is expired """ controlType = '2.16.840.1.113730.3.4.4' def decodeControlValue(self,encodedControlValue): self.passwordExpired = encodedControlValue=='0' KNOWN_RESPONSE_CONTROLS[PasswordExpiredControl.controlType] = PasswordExpiredControl