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

Implement and enforce user account status #9374

Merged
merged 14 commits into from
Nov 9, 2020
Merged

Implement and enforce user account status #9374

merged 14 commits into from
Nov 9, 2020

Conversation

mpfz0r
Copy link
Contributor

@mpfz0r mpfz0r commented Nov 5, 2020

Fixes #9077

 - If we can't get the userNameAttribute, simply use the username
 - Fill in dummy email address if none can't be found
Reverse the order: First provision, then try to login.
This is needed, because we otherwise can't update the disabled status
flag for accounts.
Copy link
Member

@bernd bernd left a comment

Choose a reason for hiding this comment

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

First round of review.

@bernd bernd self-assigned this Nov 5, 2020
This means the test result can only show whether an account is
enabled/disabled.
This deliberately ignores the pre-auth flag set by the
HTTPHeaderAuthRealm.
@mpfz0r mpfz0r marked this pull request as ready for review November 6, 2020 12:10
@mpfz0r mpfz0r requested a review from bernd November 6, 2020 14:19
Copy link
Member

@bernd bernd left a comment

Choose a reason for hiding this comment

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

Tested with local users and AD users. Works! 👍

Three smaller comments:

@mpfz0r mpfz0r requested a review from bernd November 9, 2020 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement a user status
2 participants