Skip to content

Add two factor authentication to PAM via privacyIDEA

Notifications You must be signed in to change notification settings

qlux/pam_python

 
 

Repository files navigation

Build Status

This module is to be used with http://pam-python.sourceforge.net/. It can be used to authenticate with OTP against privacyIDEA. It will also cache future OTP values to enable offline authentication.

To be used like this::

   auth   requisite    pam_python.so /path/to/modules/privacyidea-pam.py

It can take the following parameters:

url=https://your-server

Default is https://localhost

debug

Write debug information to the system log

realm=yourRealm

Pass additional realm to privacyidea

nosslverify

Do not verify the SSL certificate

prompt=

The password prompt. Default is "Your OTP".

api_token=

The API Token to access admin REST API for auto-enrolment. Requires the following Actions: { "enrollEMAIL": true, "enrollpin": true, "tokenlist": true }

grace=

Grace time in minutes.

user_attribute=<uid,gid,gecos>

Override the username to send to privacyIDEA with an attribute from the user's password entry

users=<list,of,users>

Comma-separated list of users to apply the plugin to. If not specified, apply to all users.

sqlfile=

This is the SQLite file that is used to store the offline authentication information. The default file is /etc/privacyidea/pam.sqlite

mysql=

Use MySQL/MariaDB instead of SQLite to store refill/history tables. URI form: mysql://username:password@host:3306/db_name If absent, fallback to sqlfile

About

Add two factor authentication to PAM via privacyIDEA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.7%
  • Roff 1.3%