Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

mhoran/pam_auth_ticket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pam_auth_ticket

This PAM module allows reuse of previously successful authentication credentials on subsequent authentication requests (think sudo).

This feature is particularly useful for those who may be utilizing one-time passwords (OTP) for authentication, where the OTP may only be used once. Non-OTP aware applications may present the OTP multiple times for authentication requests, which would normally be considered invalid.

This module checks the incoming password against a previously successful password, and verifies that no more than 60 (to be configurable) seconds have passed since the last successful authentication request. When the module is configured as sufficient for authentication requests, it will bypass the normal authentication flow.

Usage

To enable pam_auth_ticket to cache credentials for the dovecot service, add the following to your pam.d directory:

auth	sufficient	/usr/local/lib/security/pam_auth_ticket.so
auth	requisite	/usr/local/lib/security/pam_oath.so usersfile=/usr/local/etc/users.oath digits=6 use_first_pass
auth	required	pam_unix.so use_first_pass
account	required	pam_unix.so
session	required	/usr/local/lib/security/pam_auth_ticket.so

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published