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

Question about yubikey-server-c on Ubuntu
https://forum.yubico.com/viewtopic.php?f=5&t=750
Page 1 of 1

Author:  mhmediaonline [ Wed Feb 08, 2012 10:36 am ]
Post subject:  Question about yubikey-server-c on Ubuntu

Hi,

I'm running Ubuntu Linux 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37 UTC 2011 i686 GNU/Linux and am trying to install the yubikey-server-c package to set up key verification. I've installed the package and it has the following attributes:

Code:
 dpkg -p yubikey-server-c
Package: yubikey-server-c
Priority: optional
Section: admin
Installed-Size: 96
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Version: 0.5-1
Depends: libc6 (>= 2.8), libgcrypt11 (>= 1.4.2), libmicrohttpd5, libpq5 (>= 8.4~0cvs20090328), libyubikey0 (>= 1.5)
Size: 13214
Description: Yubikey validation server
 Yubikeys are USB tokens that act like keyboards and generate one-time
 passwords.  The tokens are produced and sold by Yubico
 .
 This is a server that checks the validity of those OTP tokens.  There
 are servers written in Java and PHP, while this one is written in C
 .
 It implements the server side of the API as described on
 http://www.yubico.com/developers/api/ and can be used with any client
 that implements the same API.
Original-Maintainer: Tollef Fog Heen <tfheen@debian.org>


When I run the script to start it, it immediately exits but seems to give no error message. Can you let me know if this package is in a usable state, or whether it needs some modifications?

Thanks!

Author:  Fredrik-at-Yubico [ Mon Feb 13, 2012 10:22 am ]
Post subject:  Re: Question about yubikey-server-c on Ubuntu

yubikey-server-c is not written by Yubico, but when I install that package on a test server I get the following in syslog when I try to start it :

yubikeyd version 0.5 starting up
connection to database failed ...

Might that be the case for you as well?

/Fredrik

Author:  mhmediaonline [ Mon Feb 13, 2012 10:32 am ]
Post subject:  Re: Question about yubikey-server-c on Ubuntu

Fredrik-at-Yubico wrote:
yubikey-server-c is not written by Yubico, but when I install that package on a test server I get the following in syslog when I try to start it :

yubikeyd version 0.5 starting up
connection to database failed ...

Might that be the case for you as well?

/Fredrik


Thanks for the feedback Fredrik.

I'm embarassed to say that it appears to have been configure to use a Postgres database and I've only just found the syslog message:

Code:
yubikeyd version 0.5 starting up
yubikeyd[13688]: connection to database failed: could not connect to server: No such file or directory#012#011Is the server running locally and accepting#012#011connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


I'll have to have another look and see if I can figure this out. If I can, I'll report it back here.. :oops:

EDIT:
Just had a look at the source code and it's all Postgres :( Any chance of getting an SQLITE version, I wonder?

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