List Info

Thread: Gnome login via Pam_p11




Gnome login via Pam_p11
country flaguser name
Belgium
2007-05-05 12:13:47
Hi,

I'm new to Linux, so please bear with me.

Last week I got my smart card reader working, and now I'm
trying to use
it to log on to Gnome. I'm using Ubuntu 7.04.

I sort of followed the quickstart and did this:

- pkcs15-tool -c

Error: can't open /var/run/openct/status: No such file or
directory
Error: can't open /var/run/openct/status: No such file or
directory
Error: can't open /var/run/openct/status: No such file or
directory
Error: can't open /var/run/openct/status: No such file or
directory
Error: can't open /var/run/openct/status: No such file or
directory
X.509 Certificate [Authentication]
          Flags    : 3
          Authority: no
          Path     : 3f00df005038
          ID       : 02

X.509 Certificate [Signature]
          Flags    : 3
          Authority: no
          Path     : 3f00df005039
          ID       : 03

X.509 Certificate [CA]
          Flags    : 3
          Authority: yes
          Path     : 3f00df00503a
          ID       : 04

X.509 Certificate [Root]
          Flags    : 3
          Authority: yes
          Path     : 3f00df00503b
          ID       : 06

- pkcs15-tool -r 02 > ~/.eid/authorized_certificates
- chmod 0644 ~/.eid/authorized_certificates
- sudo gedit /etc/pam.d/gdm &
- Changed
#%PAM-1.0
auth	requisite	pam_nologin.so
auth	required	pam_env.so
include common-auth
include common-account
session	required	pam_limits.so
include common-session
include common-password

to
#%PAM-1.0
auth	requisite	pam_nologin.so
auth       sufficient   pam_p11_opensc.so
/usr/lib/opensc-pkcs11.so
auth	required	pam_env.so
include common-auth
include common-account
session	required	pam_limits.so
include common-session
include common-password

- Rebooted (bad Windows habit, I guess)
- Typed my name, pressed enter
- The smartcard reader's light started blinking (as in: i'm
reading), 
but then my password was asked anyway.

Tried using:
/usr/lib/libbeidpkcs11.so -> same effect
/usr/lib/libbeidlibopensc.so -> could not login anymore
(had to use 
ctrl-alt-f1, login to terminal and use vi to change the
gdm-file, 
luckily I remembered the commands )

Is there anything else I can try? The card I'm trying to use
is a 
Belgian EID card.

Thanks,
Brecht

_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )