GithubHelp home page GithubHelp logo

philippmeisberger / pam-rfid Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 6.0 471 KB

Linux Pluggable Authentication Module (PAM) for RFID authentication

Home Page: http://www.pm-codeworks.de/pamrfid.html

License: Other

Shell 1.58% Makefile 0.83% Python 91.67% Roff 5.92%
python rfid rfid-authentication authentication linux pam pam-module pam-authentication

pam-rfid's Introduction

PAM RFID

PAM RFID is a Linux Pluggable Authentication Module (PAM) for RFID authentication. It uses an EM4100 compatible RFID reader (e.g. RDM6300) in conjunction with the PyRfid library https://github.com/philippmeisberger/pyrfid.

Per default the password authentication is set as fallback in case no RFID sensor is connected. Two-factor authentication is also possible. The module has to be configured by the pamrfid-conf program.

Installation

There are two ways of installing PAM RFID: Installation of the stable or latest version. The stable version is distributed through the PM Code Works APT repository and is fully tested but does not contain the latest changes.

Installation of the stable version

Add PM Code Works repository

  • Debian 9:

    ~# echo "deb http://apt.pm-codeworks.de stretch main" | tee /etc/apt/sources.list.d/pm-codeworks.list

  • Debian 10:

    ~# echo "deb http://apt.pm-codeworks.de buster main" | tee /etc/apt/sources.list.d/pm-codeworks.list

Add PM Code Works signing key

~# wget -qO - http://apt.pm-codeworks.de/pm-codeworks.de.gpg | apt-key add -
~# apt-get update

Install the packages

~# apt-get install python-rfid libpam-rfid

Installation of the latest version

The latest version contains the latest changes that may not have been fully tested and should therefore not be used in production. It is recommended to install the stable version.

Install required packages for building

~# apt-get install git devscripts equivs

Clone this repository

~$ git clone https://github.com/philippmeisberger/pam-rfid.git

Build the package

~$ cd ./pam-rfid/src/
~$ sudo mk-build-deps -i debian/control
~$ dpkg-buildpackage -uc -us

Install the package

~# dpkg -i ../libpam-rfid*.deb

Install missing dependencies

~# apt-get install -f

Setup

Add group "dialout" for each user which should be able to use PAM RFID

~# usermod -a -G dialout <username>
~# reboot

Enable PAM RFID for a user

~# pamrfid-conf --add-user <username>

Test if everything works well

~# pamrfid-conf --check-user <username>

Questions and suggestions

If you have any questions to this project just ask me via email:

[email protected]

pam-rfid's People

Contributors

philippmeisberger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pam-rfid's Issues

Setup on Arch linux

I see that you only provide packages and instructions for ubuntu based distro's but how do i set this up on Arch/manjaro?

I'n not very familiar with python hence the question
I want to use it as login with RFID cards but i'm not sure how to set it up.

Or can i get downloadlinks to the deb files, i can try to convert them with debtap to Arch packages?

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.