-
Notifications
You must be signed in to change notification settings - Fork 4
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
DEV-421: Debug error message #15
base: master
Are you sure you want to change the base?
Conversation
No changes requested. This PR is only for debugging. |
Changes to This error message appears to emit from PAM, after calling via the pam-oauth2/config/service_example Lines 1 to 2 in d2e9cc6
All auth fails at the PAM level when the So the root cause of the error message is how pam-oauth2/pam-oidc/src/lib.rs Lines 170 to 174 in d2e9cc6
fn acct_mgmt(_pamh: Pam, _flags: PamFlags, _args: Vec<String>) -> PamError {
info!("acct_mgmt called.");
PamError::SUCCESS
// PamError::USER_UNKNOWN
} We see that it always returns success when called with the
|
See https://github.com/miquels/webnis/tree/master/webnis-pam and https://github.com/salesforce/pam_oidc for examples of PAM modules that uses pamsm |
Also see the MySQL Enterprise docs: https://dev.mysql.com/doc/refman/8.0/en/pam-pluggable-authentication.html#pam-pluggable-authentication-usage
|
On e0150ad, we reproduce the error log message without the custom PAM plugin at all; we instead use the
|
I'll next try creating users with a Group Mapping to see if we can resolve this by mapping users to a user group that exists as a Unix user. |
We see that regardless of how the PAM config file like config/service_example is configured, the |
Maybe try |
Error message is emitted from this line in the |
Search on the Percona issue board returns no results: https://perconadev.atlassian.net/jira/software/c/projects/PS/issues/?jql=project%20%3D%20%22PS%22%20AND%20text%20~%20%22passwd%20entry%22%20ORDER%20BY%20created%20DESC |
Same issue observed with |
This SO post explains it perfectly: https://unix.stackexchange.com/a/698020 |
This is an error message that is specific to the Percona distribution of PAM authentication plugin:
|
Mirror of https://datajoint.atlassian.net/browse/DEV-421
Error message observed in prod Percona when using this plugin:
The cause of this error message is that the user running. UPDATE: this is confirmed not to fix the issue.mysqld
does not read access to/etc/shadow
, as explained in MariaDB PAM docs. This is reproducible using the MySQL tests on 880d0f7Fix
The proposed fix is to grantDid not fix, see below.+r /etc/shadow
permissions to the user runningmysqld
in the production DB. The MariaDB PAM docs explain how to do this if this user ismysql
.