Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a fork of pam_url to work as a two factor solution for totp-cgi
C PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
tests
.gitignore
AUTHOR
COPYING
INSTALL
Makefile
README
pam_totp.c
pam_totp.h
pam_totp.spec
pam_totp_authenticate.c

README

pam_totp - Centralized two-factor authentication compatable with Google Authenticator.

This software is opensource software licensed under the GNU Public License version 2.
This software is based on the pam_url module originally created bySascha Thomas Spreitzer <sspreitzer (at) fedoraproject.org>.
http://spreitzer.name/
https://fedoraproject.org/wiki/User:Sspreitzer

USE THIS SOFTWARE WITH ABSOLUTELY NO GUARANTEE AND WARRANTY


/etc/pam.d/sshd or /etc/pam.d/system-auth:

[...]
auth required pam_totp.so [debug] [use_authtok] [config=/etc/pam_totp.conf]
[...]

This line forms the following url encoded POST data:
user=<username>&passwd=<pass>&hostname=<hostname>
It should return either 200 OK with PSK in the body or 400 Bad Request if unsuccessful.

[Features]
- Google Authenticator compatable OTP authentication
- Inline provisiong for new users

[TODO]
- Code audit
Something went wrong with that request. Please try again.