| PAM_CANONICALIZE_USE(8) | Linux-PAM Manual | PAM_CANONICALIZE_USE(8) |
pam_canonicalize_user - Get user name and canonicalize it
pam_canonicalize_user.so
This PAM module uses the name of the user obtained via pam_get_user(3) as a key to query the password database, and replaces PAM_USER with the pw_name value that has been returned.
This module does not recognise any options.
Only the auth module type is provided.
PAM_IGNORE
PAM_USER_UNKNOWN
PAM_SYSTEM_ERR
PAM_INCOMPLETE
PAM_CONV_ERR
PAM_ABORT
PAM_BUF_ERR
Prepend the PAM auth stack with the following line to canonicalize the user name before the authentication:
auth required pam_canonicalize_user.so
pam_get_user(3), pam_get_item(3), pam_set_item(3), getpwnam(3), pam.conf(5), pam.d(5), pam(8)
pam_canonicalize_user was written by Dmitry V. Levin <ldv@strace.io>.
| 06/29/2025 | Linux-PAM |