Go to file
Dmitry V. Levin 2cae0f5c67 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.
2023-11-14 23:25:00 +00:00
.github/workflows ci: add --enable-debug jobs to the ci matrix 2023-11-14 00:27:49 +01:00
ci ci: add --enable-debug jobs to the ci matrix 2023-11-14 00:27:49 +01:00
conf conf: cast to unsigned char for character handling function 2023-08-07 10:46:40 +00:00
doc pam_canonicalize_user: new module to canonicalize user name 2023-11-14 23:25:00 +00:00
dynamic Update .gitignore files 2011-10-27 14:55:55 +00:00
examples examples/tty_conv: fix build on musl 2023-05-12 02:09:07 +00:00
libpam libpam: fix _pam_mkargv return value on error path 2023-11-14 23:25:00 +00:00
libpam_misc treewide: do not cast calloc/malloc/realloc 2023-11-12 19:43:03 +00:00
libpamc libpamc: cast to unsigned char for character handling function 2023-08-07 10:46:40 +00:00
m4 Enable format compiler warnings 2023-01-30 16:36:57 +00:00
maint maint: update release procedure 2020-11-24 18:00:00 +00:00
modules pam_canonicalize_user: new module to canonicalize user name 2023-11-14 23:25:00 +00:00
po po: update translations using Weblate (Slovak) 2023-06-06 08:00:00 +00:00
tests tests: free return value of _pam_mkargv() 2023-08-07 12:26:41 +02:00
xtests pam_shells: Added xtest test case 2022-12-07 16:24:09 +01:00
.gitignore Update .gitignore file 2022-01-24 08:00:00 +00:00
AUTHORS Relevant BUGIDs: none 2005-12-16 17:52:36 +00:00
autogen.sh autotools: enable warnings 2020-08-03 16:15:47 +02:00
CHANGELOG Fix whitespace issues 2011-10-26 23:56:54 +00:00
ChangeLog-CVS Generate ChangeLog from git log 2011-10-27 14:55:55 +00:00
configure.ac pam_canonicalize_user: new module to canonicalize user name 2023-11-14 23:25:00 +00:00
COPYING Fix whitespace issues 2011-10-26 23:56:54 +00:00
Copyright Fix whitespace issues 2011-10-26 23:56:54 +00:00
gitlog-to-changelog gitlog-to-changelog: update from gnulib 2020-06-03 08:00:00 +00:00
Make.xml.rules.in build: fix --enable-openssl 2023-04-20 13:10:06 +00:00
Makefile.am configure.ac: add --enable-examples option 2023-05-11 05:16:06 +00:00
NEWS Prepare for 1.5.3 release 2023-04-29 11:11:00 +00:00
pgp.keys.asc pgp.keys.asc: update 2023-03-30 20:00:00 +00:00
README README: fix typo 2022-01-06 08:00:00 +00:00
README-hacking Generate ChangeLog from git log 2011-10-27 14:55:55 +00:00
zanata.xml Project registered at Zanata (fedora.zanata.org) for translations. 2016-04-14 17:48:03 +02:00

Hello!

Thanks for downloading Linux-PAM.

NOTES:

How to use it is as follows:

Please look at the ci/install-dependencies.sh for the necessary
prerequisite packages to be able to build the Linux-PAM. The script
is targeted at Debian based Linux distributions so the package
names and availability might differ on other distributions.

If you check out the sources from git, install Autotools and generate
configuration scripts, ensuring you have the minimum packages installed,
the ci scripts may help here:

      ./autogen.sh

Then compile:

      ./configure --help | less
      ./configure <your-options>
      make

To make sure everything was compiled correct, run:

      make check

If a test fails, you should not continue to install this build.
These tests require a suitable file /etc/pam.d/other; if necessary,
create such a file containing, e.g., these five lines (not indented)

	#%PAM-1.0
	auth	 required	pam_deny.so
	account	 required	pam_deny.so
	password required	pam_deny.so
	session	 required	pam_deny.so


Note, if you are worried - don't even think about doing the next line
(most Linux distributions already support PAM out of the box, so if
something goes wrong with installing the code from this version your
box may stop working..)

      make install

That said, please report problems to the bug reporting database
at https://github.com/linux-pam/linux-pam/issues .

You can run additional checks after installing by executing

      make xtests

as root.

WARNING: Running "make xtests" can overwrite configuration data
or make the system insecure/unfunctional for a short time!
Backup all important data before!

To regenerate manual pages from the XML source files you need the
docbook-xsl stylesheets in version 1.69.1 or newer, older versions had
a bug which generates a broken layout.