Skip to content
This repository has been archived by the owner. 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

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

ThomasHabets opened this issue Oct 10, 2014 · 4 comments

Comments

@ThomasHabets
Copy link
Contributor

@ThomasHabets ThomasHabets commented Oct 10, 2014

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

@ThomasHabets ThomasHabets commented Oct 10, 2014

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

@ThomasHabets ThomasHabets commented Oct 10, 2014

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

@ThomasHabets ThomasHabets commented Oct 10, 2014

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

@ThomasHabets ThomasHabets commented Nov 9, 2016

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant