diff options
author | Dmitry V. Levin <ldv@strace.io> | 2023-11-07 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-11-14 23:25:00 +0000 |
commit | 2cae0f5c6757a66602546d76d51a4ba9bb28b2b2 (patch) | |
tree | 99a80a13dc8861cdde1b8cf564b0ce51a59399e6 /doc | |
parent | 6a4bf999a7bd5da780fa4157d4397548ffe0c30f (diff) | |
download | pam-2cae0f5c6757a66602546d76d51a4ba9bb28b2b2.tar.gz pam-2cae0f5c6757a66602546d76d51a4ba9bb28b2b2.tar.bz2 pam-2cae0f5c6757a66602546d76d51a4ba9bb28b2b2.zip |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/sag/Linux-PAM_SAG.xml | 3 | ||||
-rw-r--r-- | doc/sag/pam_canonicalize_user.xml | 24 |
2 files changed, 26 insertions, 1 deletions
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. </para> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pam_access.xml"/> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pam_canonicalize_user.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pam_debug.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pam_deny.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pam_echo.xml"/> @@ -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 </programlisting> </chapter> -</book>
\ No newline at end of file +</book> 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 @@ +<section xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="sag-pam_canonicalize_user"> + <title>pam_canonicalize_user - get user name and canonicalize it</title> + <cmdsynopsis sepchar=" "> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../modules/pam_canonicalize_user/pam_canonicalize_user.8.xml" xpointer='xpointer(id("pam_canonicalize_user-cmdsynopsis")/*)'/> + </cmdsynopsis> + <section xml:id="sag-pam_canonicalize_user-description"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../modules/pam_canonicalize_user/pam_canonicalize_user.8.xml" xpointer='xpointer(id("pam_canonicalize_user-description")/*)'/> + </section> + <section xml:id="sag-pam_canonicalize_user-options"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../modules/pam_canonicalize_user/pam_canonicalize_user.8.xml" xpointer='xpointer(id("pam_canonicalize_user-options")/*)'/> + </section> + <section xml:id="sag-pam_canonicalize_user-types"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../modules/pam_canonicalize_user/pam_canonicalize_user.8.xml" xpointer='xpointer(id("pam_canonicalize_user-types")/*)'/> + </section> + <section xml:id="sag-pam_canonicalize_user-return_values"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../modules/pam_canonicalize_user/pam_canonicalize_user.8.xml" xpointer='xpointer(id("pam_canonicalize_user-return_values")/*)'/> + </section> + <section xml:id="sag-pam_canonicalize_user-examples"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../modules/pam_canonicalize_user/pam_canonicalize_user.8.xml" xpointer='xpointer(id("pam_canonicalize_user-examples")/*)'/> + </section> + <section xml:id="sag-pam_canonicalize_user-author"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../../modules/pam_canonicalize_user/pam_canonicalize_user.8.xml" xpointer='xpointer(id("pam_canonicalize_user-author")/*)'/> + </section> +</section> |