Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Generate new eight-digit emergency codes for Authenticator for PAM. #247

Closed
ThomasHabets opened this issue Oct 10, 2014 · 4 comments
Closed

Comments

@ThomasHabets
Copy link
Contributor

Original issue 248 created by tim@timpollock.info on 2013-02-08T00:05:10.000Z:

What steps will reproduce the problem?

  1. Wish to generate new emergency codes for times when I don't have Authenticator on me.
  2. Setting up Authenticator only gives me five codes.
  3. I would like more.

What version of the product are you using? On what operating system?
pam_google_authenticator.so

Please provide any additional information below.
When setting up Google Authenticator for PAM, it gives me five emergency codes. I'd like to generate more as a just-in-case. Is this at all possible?

@ThomasHabets
Copy link
Contributor Author

Comment #1 originally posted by belotton on 2013-02-09T09:47:43.000Z:

You can change the SCRATCHCODES value (file google-authenticator.c, line 41).
Then, build and install by running "make install".
Run google-authenticator.

Is it possible to generate new emergency codes without changing the secret key ?

@ThomasHabets
Copy link
Contributor Author

Comment #2 originally posted by belotton on 2013-02-09T11:01:20.000Z:

You can change the SCRATCHCODES value (file google-authenticator.c, line 41).
Then, build and install by running "make install".
Then, run google-authenticator.

I think google-authenticator should be able to generate new emergency codes without generating a new secret.

@ThomasHabets
Copy link
Contributor Author

Comment #3 originally posted by belotton on 2013-02-09T13:47:28.000Z:

Here is a patch allowing you to specify the number of emergency codes (max 10) you want to generate.

Usage :
google-authenticator --emergency-code 10
google-authenticator -e 10

@ThomasHabets
Copy link
Contributor Author

This issue was moved to google/google-authenticator-libpam#29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant