[python-ldap] Not able to fetch passwordGraceLimit's value
Christian Heimes
christian at python.org
Thu Mar 22 09:42:11 EDT 2018
On 2018-03-22 13:12, Akshay Adhikari wrote:
> Hi All,
>
> I was testing password policies for ldap and got around with this issue
> in the following code :
> [1]
> https://github.com/python-ldap/python-ldap/blame/master/Lib/ldap/controls/ppolicy.py
>
> So the problem which I am facing is, I am not able to extract
> passwordGraceLimit's value. It is returning as Null value. The same sort
> of code works for me while extracting value for passwordWarning. For
> clearance on this I will share my piece of code.
> [2] https://pastebin.com/WAYCQ7F8
>
> Also for more clear idea I am pasting the whole code.
> [3]
> https://pagure.io/389-ds-base/blob/master/f/dirsrvtests/tests/suites/password/pwdPolicy_controls_test.py
> <https://pagure.io/389-ds-base/blob/master/f/dirsrvtests/tests/suites/password/pwdPolicy_controls_test.py>
>
> Please go through it, any suggestion would be really helpful.
The operation may not be supported by your LDAP server or your user may
not have privileges to access the field.
It looks like you are working on 389-DS. Mark, Simon, or William should
be able to help you to debug the issue.
Christian
More information about the python-ldap
mailing list