Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix an exception when nt key cache is enabled but no max login attempt was defined #8156

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

stgmsa
Copy link
Contributor

@stgmsa stgmsa commented May 16, 2024

Description

fix an exception when NT key cache is enabled and no max password attempts is defined, parsing old_password_allowed_peroid is ignored issue.

Impacts

fix an exception when NT key cache is enabled and no max password attempts is defined, parsing old_password_allowed_peroid is ignored issue.
without this fix, an specific authentication will fail.

Delete branch after merge

YES

Checklist

  • Document the feature
  • Add OpenAPI specification
  • Add unit tests
  • Add acceptance tests (TestLink)

@stgmsa stgmsa requested review from fdurand and satkunas May 16, 2024 13:29
@satkunas satkunas added this to the +1 (patch release) milestone May 16, 2024
Comment on lines +176 to +179
if ad_old_password_allowed_period < 0 or ad_old_password_allowed_period > 99999:
print(f" NT Key cache: 'ad_old_password_allowed_period' ranges from 0..99999, cache disabled.")
nt_key_cache_enabled = False
break
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 and 99999 are valid ad_old_password_allowed_peroid.
if it's set to 0, no old password will be accepted, changing password will immeidately revoke access of old password.
while 99999 means old password will still valid for 99999 minutes. but no admin will gonna do that in production environment.

@satkunas satkunas merged commit 4db4484 into devel Aug 6, 2024
13 checks passed
@satkunas
Copy link
Contributor

satkunas commented Aug 6, 2024

@stgmsa please backport

stgmsa added a commit that referenced this pull request Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants