google / google/glome

Allow PAM module to save state

Open
#218 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
71
Forks
21
PR merge metrics
No merged PRs in 30d

Description

After trying to educate myself on how to use the PAM module properly together with pam_unix still present, I think this is probably the way:

* Invoke pam_glome with a "prompt" option. This should use `pam_set_data` to store the ephemeral key and output the GLOME challenge.
* Let pam_unix do its thing and fail if the password is incorrect.
* Invoke pam_glome again, let it discover the prior context and check the authcode.

We might also want to support a "quiet" to not print errors - however in this setup I suspect printing anything about the authcode is actually fine.

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.