GithubHelp home page GithubHelp logo

Comments (6)

a-dma avatar a-dma commented on June 9, 2024

Hi,
I'm glad that you find this project useful.

So, is it just a matter of not printing the message or are you having troubles with PAM not using the following module?

If it's the latter try something like this

auth   [success=1 default=ignore]  pam_u2f.so
auth   requisite                   pam_unix.so
auth   required                    pam_permit.so

If instead it's just the print bothering you I can push something tomorrow to fix that. I'm still trying to decide whether or not is bad not to give the user any message at all if debug is turned off.

from pam-u2f.

tomswartz07 avatar tomswartz07 commented on June 9, 2024

Hi @a-dma:

The module itself works correctly. I'm just seeing (what I would consider) debug text when the key is not plugged in and it attempts to auth.

I've tried with the [success=1 default=ignore] edits, as you've suggested and it still outputs the text I highlight in my original post.

I think that the text that's output would be most helpful in 'debug mode', but not during normal operation.

If one plans to use the U2F device, you'll either have it plugged in before auth'ing, or use the 'interactive' mode to prompt you to plug and touch the device.

from pam-u2f.

a-dma avatar a-dma commented on June 9, 2024

I pushed a new version, let me know if that works for you.

from pam-u2f.

Manouchehri avatar Manouchehri commented on June 9, 2024

I can confirm that b5729e8 fixes it. Thanks @a-dma!

Before:

~ > sudo whoami
[util.c:do_authentication(236)] Unable to discover device(s), cannot find U2F device
YubiKey for `david': 
root

After:

~ > sudo whoami
YubiKey for `david': 
root

from pam-u2f.

tomswartz07 avatar tomswartz07 commented on June 9, 2024

@a-dma Sorry for the delay. Yes, I can also confirm that the updated version works as well!

Thanks!

from pam-u2f.

a-dma avatar a-dma commented on June 9, 2024

No worries. Closing.

from pam-u2f.

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.