root/releases/opensc-0.9.2/PAM_README

Revision 1872, 2.0 KB (checked in by anonymous, 4 years ago)

This commit was manufactured by cvs2svn to create branch 'opensc-0.9.2'.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1Quick start guide to using the pam module
2=========================================
3
4The pam module supports two different flavors:
5a) "eid" - store the certificate for a user in that
6   users home directory in a file called ".eid/authorized_certificates"
7b) "ldap" - store the certificate for a user in a central ldap
8   repository
9
10This guide only deals with flavor a). If you want to add documentation
11on using pam with ldap, please send a patch to the opensc-devel mailing
12list.
13
14First initialize the token, create a user with a pin, create a key
15and create a certificate, all as documented in the QUICKSTART file.
16
17
18The first thing is to copy the opensc pam module to the right location.
19Pam modules are searched for in the directory /lib/security/.
20$ cp /usr/lib/security/pam_opensc.so /lib/security/pam_opensc.so
21
22Now change one service to use this pam module by default. Keep at least
23one xterm and/or virtual console open as root, so you can undo any
24configuration change, in case it does not work.
25
26Edit for example /etc/pam.d/login and replace
27auth       required   pam_unix.so nullok
28with
29auth       required   pam_opensc.so
30
31If you want to use opensc first, and fall back on normal password based
32authentication, you could use these two lines:
33auth       sufficient pam_opensc.so
34auth       required   pam_unix.so nullok
35
36Note the first line is marked as "sufficient", so successful smart card
37authentication will let a user in. If both lines read "required", a user
38would have to use a smart card with the right key and certificate on it,
39enter the right pin *AND* have the right passwort for the normal login
40procedure.
41
42Now every user needs to create a directory ".eid" in his or her home
43directory and put the certificate in a file called "authorized_certificates".
44To do this, enter the command
45$ pkcs15-tool -r 45 -o ~/.eid/authorized_certificates
46
47Now try to login using the smart card. Remember to first insert your
48smart card into the reader, then enter your username, and then the
49pin on your key.
50
51
Note: See TracBrowser for help on using the browser.