|
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | MODULE TYPES PROVIDED | RETURN VALUES | EXAMPLES | SEE ALSO | AUTHOR | COLOPHON |
|
|
|
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
The user name was set successfully.
PAM_USER_UNKNOWN
The user was not found.
PAM_SYSTEM_ERR
The application did not supply neither a user name nor a
conversation method.
PAM_INCOMPLETE
The conversation method supplied by the application is waiting
for an event.
PAM_CONV_ERR
The conversation method supplied by the application failed to
obtain the user name.
PAM_ABORT
Error resuming an old conversation.
PAM_BUF_ERR
Memory buffer error.
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>.
This page is part of the linux-pam (Pluggable Authentication
Modules for Linux) project. Information about the project can be
found at ⟨http://www.linux-pam.org/⟩. If you have a bug report
for this manual page, see ⟨//www.linux-pam.org/⟩. This page was
obtained from the project's upstream Git repository
⟨https://github.com/linux-pam/linux-pam.git⟩ on 2026-01-16. (At
that time, the date of the most recent commit that was found in
the repository was 2026-01-12.) If you discover any rendering
problems in this HTML version of the page, or you believe there is
a better or more up-to-date source for the page, or you have
corrections or improvements to the information in this COLOPHON
(which is not part of the original manual page), send a mail to
man-pages@man7.org
Linux-PAM 01/16/2026 PAM_CANONICALIZE_USE(8)