pam_canonicalize_user8Linux-PAMLinux-PAM Manualpam_canonicalize_userGet user name and canonicalize itpam_canonicalize_user.soDESCRIPTION
This PAM module uses the name of the user obtained via
pam_get_user3
as a key to query the password database, and replaces
PAM_USER with the pw_name value
that has been returned.
OPTIONSThis module does not recognise any options.MODULE TYPES PROVIDEDOnly the module type is provided.RETURN VALUESPAM_IGNOREThe user name was set successfully.PAM_USER_UNKNOWNThe user was not found.PAM_SYSTEM_ERRThe application did not supply neither a user name nor a conversation method.PAM_INCOMPLETEThe conversation method supplied by the application is waiting for an event.PAM_CONV_ERRThe conversation method supplied by the application failed to obtain the user name.PAM_ABORTError resuming an old conversation.PAM_BUF_ERRMemory buffer error.EXAMPLES
Prepend the PAM auth stack with the following line to canonicalize
the user name before the authentication:
auth required pam_canonicalize_user.so
SEE ALSOpam_get_user3,
pam_get_item3,
pam_set_item3,
getpwnam3,
pam.conf5,
pam.d5,
pam8AUTHOR
pam_canonicalize_user was written by Dmitry V. Levin <ldv@strace.io>.