Closed istenik closed 4 years ago
Hello. Thank you for report. Fix committed to master.
Syntax error (double if):
Mar 20 10:18:44 ipa python: File "/opt/IPAPasswordReset/PasswordReset/app/pwdmanager.py", line 70
Mar 20 10:18:44 ipa python: if if 'krbloginfailedcount' in user['result'] and int(user['result']['krbloginfailedcount'][0]) > 0:
Mar 20 10:18:44 ipa python: ^
Mar 20 10:18:44 ipa python: SyntaxError: invalid syntax
Thanks, fixed;)
Working. Thanks!
Hi
Looks like the code not counting with "krbmaxpwdlife=0" (never expire) and then setting "krbPasswordExpiration" to curent date (now+0) which makes password expired.
Please see FreeIPA source code: https://github.com/freeipa/freeipa/blob/master/daemons/ipa-slapi-plugins/ipa-pwd-extop/common.c row 625:
Regards