Comments (8)
Comment #1 originally posted by [email protected] on 2011-03-09T20:26:02.000Z:
<empty>
from google-authenticator.
Comment #2 originally posted by ry4anb on 2011-03-23T04:59:55.000Z:
This no longer applied cleanly -- just a change in one of the context lines, so here's an update against revision 68230188bdc7
from google-authenticator.
Comment #3 originally posted by [email protected] on 2011-06-07T17:15:38.000Z:
It appears when this patch is applied on my gentoo machine, the authentication is segfaulting. When I remove the patch, it works correctly again.
I've installed the patch using:
patch < ../ignore_nofile.patch
where the ignore_nofile.patch file is located just outside the libpam directory. While this patch is in affect, the kernel outputs the following during authentication:
kernel: [65548.125770] sshd[21806]: segfault at 0 ip 00007fab4cc43352 sp 00007fff7812ece0 error 4 in pam_google_authenticator.so[7fab4cc42000+5000]
I believe this error has to do with line 1112 of pam_google_authenticator.c (after patched) where the buf var is set when the file doesn't exist (in the if block). Perhaps it's returning null and not evaluating/equating that to false in the if block? I'm happy to provide any further examples or information as needed.
from google-authenticator.
Comment #4 originally posted by david.search on 2011-06-07T22:28:23.000Z:
Here is an updated patch. The one above doesn't move the rate_limit() into the if statement after the check for the file.
I'm not currently using this so I can't test it right away but I'm 99% sure that this will fix it. It should apply cleanly.
from google-authenticator.
Comment #5 originally posted by [email protected] on 2011-06-08T14:32:01.000Z:
David, I can confirm this patch as working correctly. Thanks for the update!
from google-authenticator.
Comment #6 originally posted by roman.mueller on 2012-07-10T19:22:06.000Z:
The previous patch didn't apply cleanly for me against the current version.
Here is an updated version (pretty much only line numbers changed).
from google-authenticator.
Comment #7 originally posted by rskaliotis on 2012-09-03T19:42:17.000Z:
Note there is a "nullok" option available in the current version:
from google-authenticator.
Comment #8 originally posted by shellsterdude on 2014-08-17T08:40:56.000Z:
Unfortunately, nullok does not seem to work when you have the following scheme (for combining the password and token into one step, which is necessary for sftp clients):
auth requisite pam_google_authenticator.so forward_pass
auth required pam_unix.so use_first_pass
A partial work-around is as follows (where user group B must not use two-factor and everyone else must):
auth [success=2 default=ignore] pam_succeed_if.so user notingroup B
auth requisite pam_google_authenticator.so forward_pass
auth required pam_unix.so use_first_pass
auth [success=1 default=ignore] pam_succeed_if.so user ingroup B
auth required pam_unix.so
from google-authenticator.
Related Issues (20)
- Does not comply with RFC 6238 HOT 2
- Entering a provided key: '8' or '9' characters are invalid HOT 3
- Crap HOT 1
- Consider IANA registration of URI Scheme for otpauth? HOT 3
- Recent Update broke usage in Vysor HOT 5
- Is there any way to use this without a mobile device? HOT 2
- I Need to set QR code by base64 HOT 1
- Grouping of entries HOT 1
- No Password APP protection on IOS? HOT 1
- When I download the repo, it gives several erro missing library HOT 1
- Different behaviour between iOS and Android when opening otpauth:// urlscheme HOT 1
- Cannot transfer account without a name to a new device
- iOS App Crashes Instantly on 14.2 HOT 7
- Invalid barcode during account transfer from android to iphone HOT 11
- Face ID HOT 3
- Colors on codes
- Is that possible to use google-authenticator as a digital signature HOT 1
- Cannot Intercept QR code after transfer!! HOT 1
- AUthenticator has stopped - error on startup HOT 1
- Invalid barcode on IOS iphone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-authenticator.