From 2cae0f5c6757a66602546d76d51a4ba9bb28b2b2 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 7 Nov 2023 08:00:00 +0000 Subject: pam_canonicalize_user: new module to canonicalize user name 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. --- doc/sag/Linux-PAM_SAG.xml | 3 ++- doc/sag/pam_canonicalize_user.xml | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 doc/sag/pam_canonicalize_user.xml (limited to 'doc') diff --git a/doc/sag/Linux-PAM_SAG.xml b/doc/sag/Linux-PAM_SAG.xml index 952f224b..e49d7951 100644 --- a/doc/sag/Linux-PAM_SAG.xml +++ b/doc/sag/Linux-PAM_SAG.xml @@ -378,6 +378,7 @@ session required pam_warn.so coming with Linux-PAM. + @@ -516,4 +517,4 @@ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH - \ No newline at end of file + diff --git a/doc/sag/pam_canonicalize_user.xml b/doc/sag/pam_canonicalize_user.xml new file mode 100644 index 00000000..8c42f394 --- /dev/null +++ b/doc/sag/pam_canonicalize_user.xml @@ -0,0 +1,24 @@ +
+ pam_canonicalize_user - get user name and canonicalize it + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
-- cgit v1.2.3