summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/lib/pam_chauthtok.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-04-06 19:28:08 +0000
committerdes <des@FreeBSD.org>2002-04-06 19:28:08 +0000
commit1b3dab89b21d32019ba4c46b362a853fcdb5a062 (patch)
treeb87978cedb464f30255f48e186900d6a772bcb61 /contrib/openpam/lib/pam_chauthtok.c
parent7ca517bc656c2bf7403284f3b17155ffcae44089 (diff)
downloadFreeBSD-src-1b3dab89b21d32019ba4c46b362a853fcdb5a062.zip
FreeBSD-src-1b3dab89b21d32019ba4c46b362a853fcdb5a062.tar.gz
MFOpenPAM: a slew of changes, mostly related to pam_get_authtok() (perforce
changes 9207, 9209, 9210, 9211, 9213, 9220) Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'contrib/openpam/lib/pam_chauthtok.c')
-rw-r--r--contrib/openpam/lib/pam_chauthtok.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/contrib/openpam/lib/pam_chauthtok.c b/contrib/openpam/lib/pam_chauthtok.c
index 2699fde..bf56a13 100644
--- a/contrib/openpam/lib/pam_chauthtok.c
+++ b/contrib/openpam/lib/pam_chauthtok.c
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/openpam/lib/pam_chauthtok.c#9 $
+ * $P4: //depot/projects/openpam/lib/pam_chauthtok.c#10 $
*/
#include <sys/param.h>
@@ -53,7 +53,7 @@ pam_chauthtok(pam_handle_t *pamh,
{
int pam_err;
- if (flags & PAM_PRELIM_CHECK || flags & PAM_UPDATE_AUTHTOK)
+ if (flags & ~(PAM_SILENT|PAM_CHANGE_EXPIRED_AUTHTOK))
return (PAM_SYMBOL_ERR);
pam_err = openpam_dispatch(pamh, PAM_SM_CHAUTHTOK,
flags | PAM_PRELIM_CHECK);
@@ -73,3 +73,17 @@ pam_chauthtok(pam_handle_t *pamh,
* !PAM_IGNORE
* PAM_SYMBOL_ERR
*/
+
+/**
+ * The =pam_chauthtok function attempts to change the authentication token
+ * for the user associated with the pam context specified by the =pamh
+ * argument.
+ *
+ * The =flags argument is the binary or of zero or more of the following
+ * values:
+ *
+ * =PAM_SILENT
+ * Do not emit any messages.
+ * =PAM_CHANGE_EXPIRED_AUTHTOK
+ * Change only those authentication tokens that have expired.
+ */
OpenPOWER on IntegriCloud