From 35acacf67790bce46cfba4be9b9ac41364237385 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Mon, 24 Aug 2009 07:48:26 +0000 Subject: Relevant BUGIDs: Purpose of commit: grammar fixes Commit summary: --------------- "successful" -> "successfully"; "them self" -> "themself" - the use of "themself" as a gender-indeterminate reflexive pronoun in English is disputed and somewhat awkward, but "them self" is 100% wrong. --- doc/man/pam_get_authtok.3.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/man') diff --git a/doc/man/pam_get_authtok.3.xml b/doc/man/pam_get_authtok.3.xml index 4edf69e7..0e816350 100644 --- a/doc/man/pam_get_authtok.3.xml +++ b/doc/man/pam_get_authtok.3.xml @@ -162,7 +162,7 @@ PAM_SUCCESS - Authentication token was successful retrieved. + Authentication token was successfully retrieved. -- cgit v1.2.3 From 7a975e343a6c793325bc138db8fce1bf6a433554 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Mon, 24 Aug 2009 21:26:18 +0000 Subject: Relevant BUGIDs: Purpose of commit: cleanup Commit summary: --------------- sesseion -> session --- doc/man/pam_setcred.3.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/man') diff --git a/doc/man/pam_setcred.3.xml b/doc/man/pam_setcred.3.xml index b7cd290d..77e9382f 100644 --- a/doc/man/pam_setcred.3.xml +++ b/doc/man/pam_setcred.3.xml @@ -39,7 +39,7 @@ a session is opened for the user (with pam_open_session3 - ). The credentials should be deleted after the sesseion + ). The credentials should be deleted after the session has been closed (with pam_close_session3 -- cgit v1.2.3 From 0674700d17431655b4be03de6119ada78164266b Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 10 Nov 2009 15:52:20 +0000 Subject: Relevant BUGIDs: Purpose of commit: regression fix Commit summary: --------------- 2009-11-10 Thorsten Kukuk * doc/man/pam_get_authtok.3.xml: Document pam_get_authtok_noverify and pam_get_authtok_verify. * libpam/Makefile.am (libpam_la_LDFLAGS): Bump revesion of libpam. * libpam/pam_get_authtok.c (pam_get_authtok_internal): Renamed from pam_get_authtok, add flags argument, always check return values. * modules/pam_cracklib/pam_cracklib.c (pam_sm_chauthtok): Use pam_get_authtok_noverify and pam_get_authtok_verify. * libpam/include/security/pam_ext.h: Add prototypes for pam_get_authtok_noverify and pam_get_authtok_verify. * libpam/libpam.map: Add new pam_get_authtok_* functions. --- doc/man/Makefile.am | 3 ++- doc/man/pam_get_authtok.3.xml | 41 ++++++++++++++++++++++++++++++++++++++ doc/man/pam_get_authtok_noverify.3 | 1 + doc/man/pam_get_authtok_verify.3 | 1 + 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 doc/man/pam_get_authtok_noverify.3 create mode 100644 doc/man/pam_get_authtok_verify.3 (limited to 'doc/man') diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 9b229b16..dc2cf009 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -12,7 +12,8 @@ man_MANS = pam.3 PAM.8 pam.8 pam.conf.5 pam.d.5 \ pam_chauthtok.3 pam_close_session.3 pam_conv.3 \ pam_end.3 pam_error.3 \ pam_fail_delay.3 pam_xauth_data.3 \ - pam_get_authtok.3 pam_get_data.3 pam_get_item.3 pam_get_user.3 \ + pam_get_authtok.3 pam_get_authtok_noverify.3 pam_get_authtok_verify.3 \ + pam_get_data.3 pam_get_item.3 pam_get_user.3 \ pam_getenv.3 pam_getenvlist.3 \ pam_info.3 \ pam_open_session.3 \ diff --git a/doc/man/pam_get_authtok.3.xml b/doc/man/pam_get_authtok.3.xml index 0e816350..f2a1d6e9 100644 --- a/doc/man/pam_get_authtok.3.xml +++ b/doc/man/pam_get_authtok.3.xml @@ -27,6 +27,18 @@ const char **authtok const char *prompt + + int pam_get_authtok_noverify + pam_handle_t *pamh + const char **authtok + const char *prompt + + + int pam_get_authtok_verify + pam_handle_t *pamh + const char **authtok + const char *prompt + @@ -74,6 +86,35 @@ + + The pam_get_authtok_noverify function can + only be used for changing the password + (from + pam_sm_chauthtok3 + ). It returns the cached + authentication token, or prompts the user if no token is + currently cached. The difference to pam_get_authtok + is, that this function does not ask a second time for the password + to verify it. Upon successful return, authtok + contains a pointer to the value of the authentication token. Note, + this is a pointer to the + actual data and should + not be free()'ed or + over-written! + + + The pam_get_authtok_verify function can + only be used to verify a password for mistypes gotten by + + pam_get_authtok_noverify3 + . This function asks a second time for the password + and verify it with the password provided by authtok + argument. In case of an error, the value of authtok + is undefined. Else this argument will point to the + actual data and should + not be free()'ed or + over-written! + diff --git a/doc/man/pam_get_authtok_noverify.3 b/doc/man/pam_get_authtok_noverify.3 new file mode 100644 index 00000000..a990dbc4 --- /dev/null +++ b/doc/man/pam_get_authtok_noverify.3 @@ -0,0 +1 @@ +.so man3/pam_get_authtok.3 diff --git a/doc/man/pam_get_authtok_verify.3 b/doc/man/pam_get_authtok_verify.3 new file mode 100644 index 00000000..a990dbc4 --- /dev/null +++ b/doc/man/pam_get_authtok_verify.3 @@ -0,0 +1 @@ +.so man3/pam_get_authtok.3 -- cgit v1.2.3