aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_canonicalize_user
Commit message (Collapse)AuthorAgeFilesLines
* modules: add pamc headers to the search path only when neededTobias Stoeckmann2024-01-211-2/+1
| | | | | | | | | The pam client library libpamc is only needed if libpam_misc is in use. But libpam_misc is only used by an SELinux helper binary. Remove the libpamc includes from the search path in all other cases. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
* treewide: strictly separate builddir and srcdirTobias Stoeckmann2024-01-121-1/+1
| | | | | | | | | | Building outside of source directory fails if --disable-doc is not explicitly chosen. This happens because generated files are sometimes expected in the source directory, where they won't exist. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
* pam_canonicalize_user: fix the test for return valuesDmitry V. Levin2023-12-302-16/+17
| | | | | | | | | * modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c: Fix. * modules/pam_canonicalize_user/Makefile.am (TESTS): Add $(check_PROGRAMS). (AM_LDFLAGS): Rename to pam_canonicalize_user_la_LDFLAGS. (tst_pam_canonicalize_user_retval_LDFLAGS): New variable. Fixes: 980ddf706777 ("pam_canonicalize_user: add a test for return values")
* pam_canonicalize_user: add a test for return valuesDmitry V. Levin2023-11-142-0/+200
| | | | | | | | * modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c: New file. * modules/pam_canonicalize_user/Makefile.am (TESTS): Add $(check_PROGRAMS). (check_PROGRAMS, tst_pam_canonicalize_user_retval_LDADD): New variables.
* pam_canonicalize_user: new module to canonicalize user nameDmitry V. Levin2023-11-145-0/+275
This 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. The main usage scenario is systems where a user name is used in several distinct authentication systems, some of them being case sensitive while others are not. * configure.ac (AC_CONFIG_FILES): Add modules/pam_canonicalize_user/Makefile. * doc/sag/pam_canonicalize_user.xml: New file. * doc/sag/Linux-PAM_SAG.xml: Add a reference to pam_canonicalize_user.xml. * modules/Makefile.am (SUBDIRS): Add pam_canonicalize_user. * modules/pam_canonicalize_user/Makefile.am: New file. * modules/pam_canonicalize_user/README.xml: New file. * modules/pam_canonicalize_user/pam_canonicalize_user.8.xml: New file. * modules/pam_canonicalize_user/pam_canonicalize_user.c: New file. * modules/pam_canonicalize_user/tst-pam_canonicalize_user: New file.