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 auth #274

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Fix auth #274

merged 2 commits into from
Mar 4, 2024

Conversation

aleksei-burlakov
Copy link
Contributor

Update sanity check for passwd existance
Update validation for the newer versions of rails

The /etc/pam.d/passwd is optional in fact,
for example, there is none in the tumbleeweed.
So let's relax the condition: if there is no /etc/pam.d/passwd,
check if there is a passwd binary in /usr/bin of /usr/sbin

Starting with Rails6.1 there has changed the validation. Namelly,
the ActiveModel::Errors has changed it's structure.

Aleksei Burlakov added 2 commits March 1, 2024 15:28
Starting with Rails6.1 there has changed the validation. Namelly,
the ActiveModel::Errors has changed it's structure.
The /etc/pam.d/passwd is optional in fact,
for example there is none in the tumbleeweed.
So let's relax the condition: if there is no /etc/pam.d/passwd,
check if there is a passwd binary in /usr/bin of /usr/sbin.
Copy link
Contributor

@liangxin1300 liangxin1300 left a comment

Choose a reason for hiding this comment

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

LGTM

@aleksei-burlakov aleksei-burlakov merged commit 3388d24 into ClusterLabs:master Mar 4, 2024
1 check passed
@aleksei-burlakov aleksei-burlakov deleted the fix-auth branch April 28, 2024 08:33
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