Comments (12)
This is actually when building the prerequisit libu2f-host and libu2f-server libraries so feel free to close if you'd like me to move the question to one of them. Thanks!
from pam-u2f.
I don't have an install of F22 handy, but I've tried on F21.
It seems that on Fedora check doesn't use pkg-config. Anyway, that shouldn't be a big deal since check is only used to run self tests. If you just call make
instead of make check
you should have no problems.
For libjson, that seems to be working ok on my install. Do you see an output to pkg-config json-c --cflags --libs
?
You can always try to create .pc files for both packages yourself, just make sure the files are actually there i.e., the packages are installed correctly.
from pam-u2f.
I had issues on centos, had to locate pc files and export package config
path
On 1 Jul 2015 09:02, "Alessio Di Mauro" [email protected] wrote:
I don't have an install of F22 handy, but I've tried on F21.
It seems that on Fedora check doesn't use pkg-config. Anyway, that
shouldn't be a big deal since check is only used to run self tests. If you
just call make instead of make check you should have no problems.For libjson, that seems to be working ok on my install. Do you see an
output to pkg-config json-c --cflags --libs ?You can always try to create .pc files for both packages yourself, just
make sure the files are actually there i.e., the packages are installed
correctly.—
Reply to this email directly or view it on GitHub
#17 (comment).
from pam-u2f.
I know these things are annoying, but there isn't much we can do about them. Maybe it's a good idea to try and reach out to the developers/maintainers of the software/packages to see whether they can add support.
from pam-u2f.
Thank you for your responses. I created a json.pc file that looks like this :
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
name: Json
Description: Json library
Version: 2.0.1
./configure works but when I run make I still get :
core.c:39:18 fatal error: json.h: No such file or directory compilatin terminated.
I searched around for json.h and found it under a different package jsoncpp. It's located under /usr/include/jsoncpp/json/json.h. Is there a way to tell ./configure or make where this is ?
Thanks again for any help or advice.
from pam-u2f.
are you sure you have the right package?
It seems as if you've installed jsoncpp which is not what you need.
The package you have to install is https://admin.fedoraproject.org/pkgdb/package/json-c/
from pam-u2f.
So i did't have the -devel json.c package installed. Once In installed that i had better luck. I still had to set the library direcotryes with the _LIBS and _CFLAGS flags but I got through the builds of both _host and _server. Then I installed pam_u2f ... now when I try to use the pamu2fcfg command it still cant find the libu2f-host.so.0 library. But I'm looking right at it in /usr/local/lib.
from pam-u2f.
Once you build and install both libu2f-server and libu2f-host, a u2f-{server,host}.pc file gets installed as well.
Find out where those files are in your system (should be /usr/local/lib/pkgconfig) and then export that path as PKG_CONFIG_PATH.
Once you have the variable set, try rebuilding pam-u2f.
from pam-u2f.
One step closer but now im seeing this in the debug. I'm sorry to have you guys troubleshoot this but in return I'll write something up for fedora and post it where you like. I'm really close :
su - gr0undzer0
[pam-u2f.c:parse_cfg(47)] called.
[pam-u2f.c:parse_cfg(48)] flags 0 argc 2
[pam-u2f.c:parse_cfg(50)] argv[0]=authfile=/etc/u2f_mappings
[pam-u2f.c:parse_cfg(50)] argv[1]=debug
[pam-u2f.c:parse_cfg(51)] max_devices=0
[pam-u2f.c:parse_cfg(52)] debug=1
[pam-u2f.c:parse_cfg(53)] interactive=0
[pam-u2f.c:parse_cfg(54)] cue=0
[pam-u2f.c:parse_cfg(55)] manual=0
[pam-u2f.c:parse_cfg(56)] nouserok=0
[pam-u2f.c:parse_cfg(57)] alwaysok=0
[pam-u2f.c:parse_cfg(58)] authfile=/etc/u2f_mappings
[pam-u2f.c:parse_cfg(59)] origin=(null)
[pam-u2f.c:parse_cfg(60)] appid=(null)
[pam-u2f.c:pam_sm_authenticate(102)] Origin not specified, using "pam://Aiolos"
[pam-u2f.c:pam_sm_authenticate(113)] Appid not specified, using the same value of origin (pam://Aiolos)
[pam-u2f.c:pam_sm_authenticate(123)] Maximum devices number not set. Using default (24)
[pam-u2f.c:pam_sm_authenticate(139)] Requesting authentication for user gr0undzer0
[pam-u2f.c:pam_sm_authenticate(150)] Found user gr0undzer0
[pam-u2f.c:pam_sm_authenticate(151)] Home directory for gr0undzer0 is /home/gr0undzer0
[pam-u2f.c:pam_sm_authenticate(202)] Using authentication file /etc/u2f_mappings
[util.c:get_devices_from_authfile(80)] Authorization line: gr0undzer0:xxxxxxx,xxxxxxxxx
[util.c:get_devices_from_authfile(85)] Matched user: gr0undzer0
[util.c:get_devices_from_authfile(113)] KeyHandle for device number 1: xxxxxxxxxxx
[util.c:get_devices_from_authfile(140)] publicKey for device number 1: xxxxxxxxxx
[util.c:get_devices_from_authfile(155)] Length of key number 1 is 57
[util.c:get_devices_from_authfile(183)] Found 1 device(s) for user gr0undzer0
[util.c:do_authentication(243)] Device max index is 0
[util.c:do_authentication(266)] Attempting authentication with device number 1
[util.c:do_authentication(274)] Unable to set publicKey Crypto error
[pam-u2f.c:pam_sm_authenticate(237)] do_authentication returned -2
[pam-u2f.c:pam_sm_authenticate(251)] done. [Authentication failure]
from pam-u2f.
[util.c:get_devices_from_authfile(155)] Length of key number 1 is 57
that looks weird. The length of the public key should be 65. Make sure you haven't missed any character from the output of pamu2fcfg.
You can run it as # pamu2cfg > /etc/u2f_mappings
from pam-u2f.
faceToDesk: I must have had a bad copy earlier. Thanks so much! Auth is working now.
from pam-u2f.
I'm glad you got this going. Happy to help.
from pam-u2f.
Related Issues (20)
- Found 0 device(s) for user XXXX HOT 1
- Entries order in u2f_keys + feature request HOT 4
- libfido2 debug output is written to stderr HOT 1
- install on peppermint os HOT 1
- Pamu2f doesn't fallback to PIN when blocking the Yubikey by touching it wrong more than 3 times HOT 2
- pamu2fcfg arbitrarily decides whether to ask for PIN or not. HOT 4
- Question: is it possible to Skip u2f login without unplugging the FIDO device? HOT 5
- Can only authenticate when using PIN verification HOT 4
- Idea: use hmac-secret to hook into the keyrings and open them (like when using pw) HOT 3
- Mooltipass Mini BLE: FIDO_ERR_INVALID_ARGUMENT HOT 12
- libpam-u2f and ubuntu 22.04 error: yubico ubuntu login segmentation fault (core dumped) HOT 1
- More descriptive error messages HOT 8
- Nitrokey U2F doesn't work together with Nitrokey 3A/C HOT 6
- Having U2F key inserted on startup breaks GNOME password login until restart HOT 1
- pam-u2f saying that my token doesn't have a pin even so a pin is set. HOT 2
- [RFE] Allow comments in authorization mapping file
- Log keyhandle on auth attempt HOT 2
- Relaxed auth file parsing
- GDM login takes two minutes for U2F cue to appear on device after password entry HOT 18
- Timestamp debug logs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pam-u2f.