Yubico Forum
https://forum.yubico.com/

Compile pam_u2f on CentOS 6 i686
https://forum.yubico.com/viewtopic.php?f=33&t=1926
Page 1 of 1

Author:  n1am [ Thu Jun 18, 2015 9:37 pm ]
Post subject:  Compile pam_u2f on CentOS 6 i686

Hi,
for some days I'm trying to compile pam_u2f on Centos 6 32 bit (dev environment is a VM on vmware workstation). I compiled everything but when launching pamu2fcfg I'm getting:

Code:
No U2F device available, please insert one now, you have 15 seconds


If I use u2f-host with the u2f yubico demo I'm getting:

Code:
error: u2fh_devs_discover (-5): cannot find U2F device


When I connect the key in /var/log/messages I get:

Code:
Jun 19 00:29:51 localhost kernel: usb 2-2.1: USB disconnect, device number 8
Jun 19 00:30:07 localhost kernel: usb 2-2.1: new full speed USB device number 9 using uhci_hcd
Jun 19 00:30:07 localhost kernel: usb 2-2.1: New USB device found, idVendor=1050, idProduct=0113
Jun 19 00:30:07 localhost kernel: usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 19 00:30:07 localhost kernel: usb 2-2.1: Product: Yubikey NEO U2F
Jun 19 00:30:07 localhost kernel: usb 2-2.1: Manufacturer: Yubico
Jun 19 00:30:07 localhost kernel: usb 2-2.1: SerialNumber: 000xxxxxxx
Jun 19 00:30:07 localhost kernel: usb 2-2.1: configuration #1 chosen from 1 choice
Jun 19 00:30:07 localhost kernel: generic-usb 0003:1050:0113.0008: hiddev96,hidraw1: USB HID v1.10 Device [Yubico Yubikey NEO U2F] on usb-0000:02:00.0-2.1/input0


Same happens with a Yubico Security Key, the blue one.

Those are the steps I used to compile everyhing.

First install Development Tools and some dependencies:

Code:
yum groupinstall "Development Tools"
yum install epel-release

git clone https://github.com/json-c/json-c
git clone https://github.com/signal11/hidapi

git clone https://github.com/Yubico/libu2f-host
git clone https://github.com/Yubico/libu2f-server
git clone https://github.com/Yubico/pam-u2f

yum install gengetopt
yum install help2man asciidoc
yum install openssl openssl-devel
yum install check check-devel
yum install pam-devel


Compiled json-c and hidapi with autoreconf --install, make check, make install. Same things for libu2f-host, libu2f-server and pam_u2f.

On CentOS 7 and Debian 8 VMs works like a charm.

Thank You ;)

Regards
Andrea

Author:  n1am [ Sat Jun 20, 2015 7:39 am ]
Post subject:  Re: Compile pam_u2f on CentOS 6 i686

I've done some testing. With kernel 2.6.32-504.23.4 (latest kernel available in the centos repos at this time) I can't get it works.
Using kernel version 4 (from elrepo) the yubikey works perfectly.


Is there a way to get it work with the official kernel?

Thank

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/