/opt/imh-python/lib/python3.9/site-packages/ldap/controls
NameSizeModeActions
__pycache__/-0755rm
deref.py35330644editdlrm
libldap.py22980644editdlrm
openldap.py22370644editdlrm
pagedresults.py15320644editdlrm
ppolicy.py27960644editdlrm
psearch.py43230644editdlrm
pwdpolicy.py11200644editdlrm
readentry.py25080644editdlrm
sessiontrack.py22860644editdlrm
simple.py39340644editdlrm
sss.py49120644editdlrm
vlv.py53960644editdlrm
__init__.py43500644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/ldap/controls/pwdpolicy.py (1120B)
# -*- coding: utf-8 -*- """ ldap.controls.pwdpolicy - classes for Password Policy controls (see https://tools.ietf.org/html/draft-vchu-ldap-pwd-policy) See https://www.python-ldap.org/ for project details. """ __all__ = [ 'PasswordExpiringControl', 'PasswordExpiredControl', ] # 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