Giter Site home page Giter Site logo

ccat3z / pam_bio Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 108 KB

๐Ÿšง PAM module that run howdy, fprint and retrieve password in parallel

License: MIT License

C 11.82% Meson 7.68% Vala 80.50%
pam pam-module pam-authentication fprintd howdy linux

pam_bio's Introduction

pam_bio

PAM module that run howdy, fprint and retrieve password in parallel.

TODO

  • Move signal handler into c part
  • Document
  • disable_{fprint,howdy} by service name
  • Retrieve username before starting authn task
  • Check gdm settings before start fprint authn

Build

meson setup .build
meson compile -C .build
meson install -C .build  # install pam_bio.so to /lib/security

Usage

cat <<EOF > /etc/pam.d/test-pam-bio
#%PAM-1.0

auth [success=1 default=ignore] pam_bio.so debug
auth required pam_unix.so use_first_pass nullok
auth optional pam_permit.so
EOF

Options

  • debug
  • enable_ssh
  • enable_closed_lid
  • modules=howdy,fprint,pass

Return Values

  • PAM_SUCCESS: Authenticate succeed.
  • PAM_CRED_INSUFFICIENT: User entered password, but not sure whether the password is correct. It should be check by pam_unix.so use_first_pass.
  • PAM_AUTHINFO_UNAVAIL: No modules can access authentication information. E.g. fprint cannot claim fingerprint device.
  • PAM_AUTH_ERR: All modules failure and last module return PAM_AUTH_ERR.
  • PAM_MAXTRIES: All modules failure and last module return PAM_MAXTRIES.
  • PAM_USER_UNKNOWN: All modules failure and last module return PAM_USER_UNKNOWN.

Inspired by

pam_bio's People

Contributors

ccat3z avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

token0

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.