mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-23 17:53:40 +08:00
2cae0f5c67
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. |
||
---|---|---|
.github/workflows | ||
ci | ||
conf | ||
doc | ||
dynamic | ||
examples | ||
libpam | ||
libpam_misc | ||
libpamc | ||
m4 | ||
maint | ||
modules | ||
po | ||
tests | ||
xtests | ||
.gitignore | ||
AUTHORS | ||
autogen.sh | ||
CHANGELOG | ||
ChangeLog-CVS | ||
configure.ac | ||
COPYING | ||
Copyright | ||
gitlog-to-changelog | ||
Make.xml.rules.in | ||
Makefile.am | ||
NEWS | ||
pgp.keys.asc | ||
README | ||
README-hacking | ||
zanata.xml |
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.