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

Yubikey authentication failed: Could not parse response
https://forum.yubico.com/viewtopic.php?f=5&t=296
Page 1 of 1

Author:  Mortuis [ Thu Mar 19, 2009 4:47 pm ]
Post subject:  Yubikey authentication failed: Could not parse response

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.

Author:  network-marvels [ Fri Mar 20, 2009 8:11 am ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

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.

Author:  Mortuis [ Wed Apr 01, 2009 6:14 pm ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

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?

Author:  Mortuis [ Wed Apr 01, 2009 6:17 pm ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

If it helps, when I ran subversion I received the following revisions:

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

Author:  network-marvels [ Thu Apr 02, 2009 7:57 am ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

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 !

Author:  Mortuis [ Thu Apr 02, 2009 1:04 pm ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

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.

Author:  bramstienstra [ Tue Apr 07, 2009 2:57 pm ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

Run into the same problems... Now I've got two treads on this forum one on Centos and one on Ubuntu... :cry:

Author:  Mortuis [ Mon Apr 13, 2009 3:20 pm ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

Is there an estimated time for when a stable version of the code will be available?

Author:  network-marvels [ Thu Apr 16, 2009 5:54 pm ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

We are working on the code restructuring and it will be finished soon. We will update you as soon as we finish it.

Author:  network-marvels [ Mon Apr 27, 2009 1:14 pm ]
Post subject:  Re: Yubikey authentication failed: Could not parse response

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.

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