Giter VIP home page Giter VIP logo

Comments (8)

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #1 originally posted by [email protected] on 2011-03-09T20:26:02.000Z:

<empty>

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

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.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

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.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

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.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

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.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

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.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #7 originally posted by rskaliotis on 2012-09-03T19:42:17.000Z:

Note there is a "nullok" option available in the current version:

http://code.google.com/p/google-authenticator/source/detail?r=8f2cb7b6713fbfbbdb195252a9e1d6fab3dcf5b4

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.