Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 3:02 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Thu Mar 19, 2009 4:47 pm 
Offline

Joined: Thu Mar 19, 2009 4:42 pm
Posts: 5
I'm having a heck of a time getting the server software set up. I am able to get install.php to run successfully, but when I try logging into kms nothing appears to happen. When I check /tmp/yms.log I see the following:

2009-03-19 11:33:05: OTP failed: Yubikey authentication failed: Could not parse response, otp=veiuvufjkcuivvbelclijuvurrhgrtdlbgnttllgcggr by 24.161.10.195


I put the correct AES secret in config.php as reported in https://api.yubico.com/yms, I only have one key and I'm using the Base64 line. I'm not sure where to go from here, any help would be appreciated.


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Fri Mar 20, 2009 8:11 am 
Offline
Yubico Team
Yubico Team

Joined: Wed Oct 01, 2008 8:11 am
Posts: 210
Please change the following settings and test again:

  • In the "yubiphpbase/appinclude.php" file :

      1) Change the value of "$domain" from the line number 24 and 29 to the following values:

      $domain = '<IP Address of the machine where YMS server is installed>/<directory inside the web root where the YMS server is installed>/'

      For Example:

      $domain = 'http://192.168.1.45/yubico/'

  • In the "yubiphpbase/yubi_lib.php" file :

      1) Change the value of "$url" from the line number 89 to the following values:

      $url = "<OTP Validation URL>"

      For Example:

      $url = "http://192.168.1.45/yubico/validation/verify.php?id="

Feel free to write back to us in case you face any problems.


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 01, 2009 6:14 pm 
Offline

Joined: Thu Mar 19, 2009 4:42 pm
Posts: 5
The lines you were sending me to didn't have the code I expected to see based on the instructions you gave me. I thought I might be using the wrong version of the code, so I removed everything and started over to see if that would make a difference. The instructions I am following are here: http://code.google.com/p/yubiphpbase/so ... readme.txt

cd /var/www
svn checkout http://yubico-php-lib.googlecode.com/svn/trunk/ yubico-php-lib
svn checkout http://yubiphpbase.googlecode.com/svn/trunk/ yubiphpbase
svn checkout http://yms.googlecode.com/svn/trunk/ kms
svn checkout http://yubikey-val-server-php.googlecode.com/svn/trunk/ wsapi

So I had my four folders of code again. My database was already set up from the previous attempts, so I filled out /yubiphpbase/config.php as I did before, and when I went to run /yubiphpbase/install.php I get the following:

Code:
devact@lazarus:/var/www/yubiphpbase$ php install.php

Fatal error: Cannot redeclare unescape() (previously declared in /var/www/yubiphpbase/appinclude.php:92) in /var/www/wsapi/common.php on line 21
devact@lazarus:/var/www/yubiphpbase$


I had forgotten about this. When I was runniung the install.php last time I ran into this problem, so I went into /var/www/wsapi/common.php and commented out unescape(). Then I ran install.php again, and it came up with another function that was declared multiple times, so I commented out one of the duplicates again. I had to do this several times as many functions are defined multiple times. Eventually install.php ran successfully, the main page would load in my web browser, but I was unable to authenticate with my yubikey, at which point I started this thread.

Now I'm wondering if something got set up incorrectly last time when I finanlly got install.php to run, due to my commenting out the wrong instance of a particular function.

On a side note, in case it's relavant, I'm running Ubuntu server 8.04, and I've ensured the following packages are installed: mysql-server apache2 php5 php-pear


So, with all this in mind, am I maybe using the wrong code version? Should I not be pulling from google code? Am I possibly doing something else wrong?


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 01, 2009 6:17 pm 
Offline

Joined: Thu Mar 19, 2009 4:42 pm
Posts: 5
If it helps, when I ran subversion I received the following revisions:

wsapi: 87
kms: 136
yubiphpbase: 83
yubico-php-lib: 28


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 02, 2009 7:57 am 
Offline
Yubico Team
Yubico Team

Joined: Wed Oct 01, 2008 8:11 am
Posts: 210
We are in middle of code restructuring and we hope to complete it in coming few days. We will update you as soon as we finish code restructuring.

Thank you for your patience !


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 02, 2009 1:04 pm 
Offline

Joined: Thu Mar 19, 2009 4:42 pm
Posts: 5
Good to know, thank you for your quick response. I'm looking forward to the results of the code restructuring so I can get my own server up and running.


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 07, 2009 2:57 pm 
Offline

Joined: Fri Mar 27, 2009 2:39 pm
Posts: 9
Run into the same problems... Now I've got two treads on this forum one on Centos and one on Ubuntu... :cry:


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 13, 2009 3:20 pm 
Offline

Joined: Thu Mar 19, 2009 4:42 pm
Posts: 5
Is there an estimated time for when a stable version of the code will be available?


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 16, 2009 5:54 pm 
Offline
Yubico Team
Yubico Team

Joined: Wed Oct 01, 2008 8:11 am
Posts: 210
We are working on the code restructuring and it will be finished soon. We will update you as soon as we finish it.


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 27, 2009 1:14 pm 
Offline
Yubico Team
Yubico Team

Joined: Wed Oct 01, 2008 8:11 am
Posts: 210
We apologize for the delay !
We have completed the code restructuring task and released a new PHP based YMS and validation server.
Please visit the following link for more information:

http://www.yubico.com/developers/srv/

Feel free to write back to us in case you face any problems.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group