1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Add pam_fprint 0.2, PAM module offering finger print authentication

using libfprint.
This commit is contained in:
Simon Barner 2008-04-15 21:15:09 +00:00
parent 0d3f3d0c94
commit aca903d334
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=211319
7 changed files with 112 additions and 0 deletions

View File

@ -521,6 +521,7 @@
SUBDIR += pam_alreadyloggedin
SUBDIR += pam_authsrv
SUBDIR += pam_bsdbioapi
SUBDIR += pam_fprint
SUBDIR += pam_krb5
SUBDIR += pam_ldap
SUBDIR += pam_mkhomedir

View File

@ -0,0 +1,40 @@
# New ports collection makefile for: pam_fprint
# Date created: April 12 2008
# Whom: barner
#
# $FreeBSD$
#
PORTNAME= pam_fprint
PORTVERSION= 0.2
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fprint
MAINTAINER= barner@FreeBSD.org
COMMENT= PAM module offering finger print authentication using libfprint
LIB_DEPENDS= fprint:${PORTSDIR}/security/libfprint
CONFIGURE_ENV+= FPRINT_CFLAGS=-I${LOCALBASE}/include
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_GNOME= pkgconfig
PLIST_FILES+= bin/pam_fprint_enroll \
lib/pam_fprint.so
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
post-install:
@${ECHO}
@${ECHO} =========================================================================
@${ECHO}
@${CAT} ${PKGMESSAGE}
@${ECHO}
@${ECHO} =========================================================================
@${ECHO}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (pam_fprint-0.2.tar.bz2) = abfb041ed856aaac5c5c416973451226
SHA256 (pam_fprint-0.2.tar.bz2) = 57cba8a951d4127e5be4c3b2ced0c1c6fac0201a08c833f1644f0ea2e3fa8a72
SIZE (pam_fprint-0.2.tar.bz2) = 72781

View File

@ -0,0 +1,20 @@
--- src/Makefile.in.orig 2007-11-19 20:15:11.000000000 +0100
+++ src/Makefile.in 2008-04-12 18:44:55.000000000 +0200
@@ -30,7 +30,7 @@
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
-noinst_PROGRAMS = pamtest$(EXEEXT)
+noinst_PROGRAMS =
bin_PROGRAMS = pam_fprint_enroll$(EXEEXT)
pammod_PROGRAMS = pam_fprint.so$(EXEEXT)
subdir = src
@@ -163,7 +163,7 @@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-pammoddir = /lib/security
+pammoddir = ${PREFIX}/lib
pam_fprint_so_SOURCES = pam_fprint.c
pam_fprint_so_CFLAGS = -fPIC $(FPRINT_CFLAGS)
pam_fprint_so_LDFLAGS = -shared

View File

@ -0,0 +1,11 @@
--- src/pam_fprint.c.orig 2008-04-12 18:33:50.000000000 +0200
+++ src/pam_fprint.c 2008-04-12 18:34:31.000000000 +0200
@@ -23,7 +23,7 @@
#include <pwd.h>
#include <string.h>
-#include <fprint.h>
+#include "libfprint/fprint.h"
#define PAM_SM_AUTH
#include <security/pam_modules.h>

View File

@ -0,0 +1,32 @@
In order to enroll new finger prints, you must have r/w access to the
usb device node(s) of your finger print reader (e.g. /dev/ugen*)
(tested with UPEK finger print reader as found in Lenovo T61).
It is recommended to use devfs.rules(5) and a dedicated group to manage
access to your finger print reader.
Example configuration:
- /etc/rc.conf:
devfs_system_ruleset="localrules"
- /etc/devfs.rules:
[localrules=10]
add path 'ugen0*' mode 0660 group operator
# /etc/rc.d/devfs restart
Read `pam_fprint_enroll --help' to learn about enrolling fingers.
The security/fprint_demo port contains the graphical `fprint_demo'
application that allows you to manage your finger prints in a comfortable
way.
After enrolling fingerprints for your user(s), you can enable finger
print authentication by adding the following line to the corresponding
PAM configuration file(s) (see the PAM documentation and the pam_fprint
web site for more information).
auth sufficient %%PREFIX%%/lib/pam_fprint.so
/etc/pam.d/system is used for system-wide defaults,
/etc/pam.d/{gdm, kde} are used by the GDM/KDM login managers.

View File

@ -0,0 +1,5 @@
pam_fprint is a simple PAM module which uses libfprint's fingerprint
processing and verification functionality for authentication. In other words,
instead of seeing a password prompt, you're asked to scan your fingerprint.
WWW: http://www.reactivated.net/fprint/wiki/Pam_fprint