google / google/google-authenticator-libpam

Separate configuration from living data in the PAM module

Open
#35 5 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
2k
Forks
305
PR merge metrics
No merged PRs in 30d

Description

_From @ThomasHabets on October 10, 2014 8:6_

Original [issue 167](https://code.google.com/p/google-authenticator/issues/detail?id=167) created by raphink on 2012-04-21T09:02:48.000Z:

Currently, the PAM module relies on one file per user: ~/.google_authenticator.

While this is simple, it mixes the configuration and living data in one file. The problem I have is when deploying this file on machines automatically: the file I deploy is a configuration file, containing the secret key, parameters and scratch codes available.

If for example I use one of the scratch codes, the file gets modified, but the configuration manager (puppet for example) will replace it with the same scratch codes next time it runs.

Ideally, the PAM module would use two files:
- One for static configuration (secret key, parameters, scratch codes);
- One for living data (used scratch codes, timestamps for rate limit, etc.).

_Copied from original issue: google/google-authenticator#166_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.