<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=5&amp;t=846" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2013-01-31T08:16:09+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=846</id>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2013-01-31T08:16:09+01:00</updated>
<published>2013-01-31T08:16:09+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3511#p3511</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3511#p3511"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3511#p3511"><![CDATA[
No, ykval-queue is only needed if you have several validation servers to keep in sync.<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Thu Jan 31, 2013 8:16 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[abatie]]></name></author>
<updated>2013-01-30T20:42:39+01:00</updated>
<published>2013-01-30T20:42:39+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3510#p3510</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3510#p3510"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3510#p3510"><![CDATA[
That did it, thanks!  And it doesn't appear that ykval-queue is needed...<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2273">abatie</a> — Wed Jan 30, 2013 8:42 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[abatie]]></name></author>
<updated>2013-01-30T20:36:15+01:00</updated>
<published>2013-01-30T20:36:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3509#p3509</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3509#p3509"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3509#p3509"><![CDATA[
Do I even need to run ykval-queue?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2273">abatie</a> — Wed Jan 30, 2013 8:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2013-01-30T10:59:15+01:00</updated>
<published>2013-01-30T10:59:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3505#p3505</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3505#p3505"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3505#p3505"><![CDATA[
Almost there.. =)<br /><br />If you've only got one validation server you want to make sure the config parameter __YKVAL_SYNC_POOL__ is empty and that __YKVAL_SYNC_DEFAULT_LEVEL__ is 0.<br />What's happening is that your validation server tries to sync with another server and fails. As default sync level is measure in percent it doesn't get up to required level of syncronization and sends an error to the user.<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Wed Jan 30, 2013 10:59 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[abatie]]></name></author>
<updated>2013-01-30T02:41:42+01:00</updated>
<published>2013-01-30T02:41:42+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3503#p3503</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3503#p3503"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3503#p3503"><![CDATA[
Things are nearly working: the ksm returns something that looks good, and the verify runs, but comlains &quot;NOT_ENOUGH_ANSWERS&quot; and /var/log/messages says:<br /><br />Jan 29 17:36:05 ydb ykval[22607]: LOG_INFO:ykval-queue:synclib:server=http://ydb.peak.org/wsapi/2.0/sync, server_nonce=965f1784df8cb5f769022216560687ca, info=yk_publicname=vvhbtfcndfgv&amp;yk_counter=1&amp;yk_use=13&amp;yk_high=100&amp;yk_low=28704&amp;nonce=b7328dd9e35ba9d49e6245eb500add0a,local_counter=1&amp;local_use=12<br />Jan 29 17:36:05 ydb ykval[22607]: LOG_ERR:ykval-queue:synclib:Remote server refused our sync request. Check remote server logs.<br /><br />ksm and validation are both on the same server and there aren't any obvious &quot;remote server logs&quot; to check...ykval-queue.log just says:<br /><br />[Jan 29 17:35:25]   notice: starting ykval-queue daemon, output in: /var/log/ykval-queue.log<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2273">abatie</a> — Wed Jan 30, 2013 2:41 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soldier24]]></name></author>
<updated>2012-08-16T15:42:06+01:00</updated>
<published>2012-08-16T15:42:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3242#p3242</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3242#p3242"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3242#p3242"><![CDATA[
I checked my php configuration and I saw the curl module was installed but was turned off.<br /> This I finally turned and he works.  <img src="https://forum.yubico.com/images/smilies/icon_e_wink.gif" alt=";)" title="Wink" />  <br /><br /> had 1 single thing to change in the config to:<br /><em>$baseParams['__YKVAL_SYNC_POOL__'] = array();</em> <br />was first<br /> <em>$baseParams['__YKVAL_SYNC_POOL__'] = array(<strong>&quot;&quot;</strong>);</em> <br />there was a quote I forgot to remove.  <img src="https://forum.yubico.com/images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" /> <br /><br />and finally it works and I'm glad that it works. <br /><br />Thank you very much for your help!   <img src="https://forum.yubico.com/images/smilies/icon_e_wink.gif" alt=";)" title="Wink" /><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2121">soldier24</a> — Thu Aug 16, 2012 3:42 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2012-08-16T06:52:50+01:00</updated>
<published>2012-08-16T06:52:50+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3237#p3237</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3237#p3237"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3237#p3237"><![CDATA[
You should change all places in ykval-synclib where it says yubikeys in quotes. The error about curl_multi_init means you don't have the php curl module installed.<br />It's not really needed when you just have one server and noone to sync with, but the code doesn't know about that.<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Thu Aug 16, 2012 6:52 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soldier24]]></name></author>
<updated>2012-08-15T22:24:34+01:00</updated>
<published>2012-08-15T22:24:34+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3236#p3236</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3236#p3236"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3236#p3236"><![CDATA[
I have &quot;clients&quot; changed to &quot;val_clients&quot;.<br /> I fount multiple yubikeys values​​. (But I do not see what is and what is not of the database)<br /> If I change them all I get:<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Fatal error: Call to undefined function curl_multi_init() in C:\xampp\htdocs\yubico\validation\ykval-common.php on line 114<br /></div><br />and if I use a used otp I get:<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />h=h46iubJ98aR4NMlc54DDOORq1yk= t=2012-08-15T21:22:17Z0035 status=REPLAYED_OTP<br /></div> <br />So that detects correctly<br /><br />if I change nothing of the yubikeys values I get.<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />h=M5HXtZwNrgda9/8yMez2Yt0yMnY= t=2012-08-15T21:21:19Z0170 status=BACKEND_ERROR<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2121">soldier24</a> — Wed Aug 15, 2012 10:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2012-08-15T12:57:28+01:00</updated>
<published>2012-08-15T12:57:28+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3233#p3233</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3233#p3233"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3233#p3233"><![CDATA[
Great that the KSM is working.<br /><br />Did you change the database table name to val_yubikeys for the validation server? Since that forum post was written the validation server has been refactored. You'll need to change the tablename in the file ykval-synclib.php.<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Wed Aug 15, 2012 12:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soldier24]]></name></author>
<updated>2012-08-15T11:08:13+01:00</updated>
<published>2012-08-15T11:08:13+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3231#p3231</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3231#p3231"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3231#p3231"><![CDATA[
It works now. <img src="https://forum.yubico.com/images/smilies/icon_e_biggrin.gif" alt=":D" title="Very Happy" /><br />Yubikey ksm runs correctly now: <em>OK counter=0004 low=8c04 high=d8 use=18</em><br />The yubikey-val-server-php is almost ready but i got this:  <img src="https://forum.yubico.com/images/smilies/icon_e_confused.gif" alt=":?" title="Confused" />   (One day I shall get this working! <img src="https://forum.yubico.com/images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" /> ) <br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Notice: Undefined property: DbImpl::$result in C:\xampp\htdocs\yubico\validation\ykval-db-pdo.php on line 85<br /><br />Notice: Undefined property: DbImpl::$result in C:\xampp\htdocs\yubico\validation\ykval-db-pdo.php on line 98<br /><br />Fatal error: Call to a member function closeCursor() on a non-object in C:\xampp\htdocs\yubico\validation\ykval-db-pdo.php on line 99<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2121">soldier24</a> — Wed Aug 15, 2012 11:08 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2012-08-15T08:47:08+01:00</updated>
<published>2012-08-15T08:47:08+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3230#p3230</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3230#p3230"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3230#p3230"><![CDATA[
On the first server it's probably either an error with the database modules or with connecting to the database.<br /><br />On the second server you're probably running php 5.4, which comes with it's own hex2bin function, it should give the same results to the one shipped with yubikey-ksm, so you can remove/rename the function in ykksm-utils.php.<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Wed Aug 15, 2012 8:47 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soldier24]]></name></author>
<updated>2012-08-15T07:55:24+01:00</updated>
<published>2012-08-15T07:55:24+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3229#p3229</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3229#p3229"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3229#p3229"><![CDATA[
I think I've read too fast ...  (my wrong  <img src="https://forum.yubico.com/images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" />) <br />I have corrected the errors and and behind the first (&quot;Database error ERR&quot;) is the following error.<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Notice: Undefined variable: dbh in C:\webserver\root\yubico\ksm\ykksm-decrypt.php on line 60<br />Fatal error: Call to a member function query() on a non-object in C:\webserver\root\yubico\ksm\ykksm-decrypt.php on line 60<br /></div><br /><br />i`ve tried again on a another server (xampp) and the error is gone but the error is now on that server.<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Fatal error: Cannot redeclare hex2bin() in C:\xampp\htdocs\yubico\ksm\ykksm-utils.php on line 39<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2121">soldier24</a> — Wed Aug 15, 2012 7:55 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2012-08-15T06:55:18+01:00</updated>
<published>2012-08-15T06:55:18+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3227#p3227</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3227#p3227"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3227#p3227"><![CDATA[
Did you follow the step in the linked HOWTO where you rename the yubikeys table to ksm_yubikeys (in step 4) in that case you have to change the &quot;...FROM yubikeys...&quot; to read &quot;...FROM ksm_yubikeys...&quot;<br /><br />The error is written from one of those 'die(&quot;ERR Database Error&quot;)', modify them so you can see which one. If it's the first one the error is triggered in connecting to the database or loading the database modules. If it's the second one it's triggered on querying the database. You should get the log lines in syslog as well, I guess that depends on what php on windows does with syslog..<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Wed Aug 15, 2012 6:55 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soldier24]]></name></author>
<updated>2012-08-14T17:02:40+01:00</updated>
<published>2012-08-14T17:02:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3226#p3226</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3226#p3226"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3226#p3226"><![CDATA[
i got here 2 screenshots,<br />one is from my php configuraton with loaded modules.<br />The second screenshots is from my browser when i now test the otp after i corrected the value LOG_LOCAL0 to LOG_USER<br />my server logs says nothing about the problem now.<br /><br />I have a suspicion that the problem is in ykksm-decrypt.php.<br /> I do not know if the perl files is because I do not know the programming language Perl.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2121">soldier24</a> — Tue Aug 14, 2012 5:02 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2012-08-14T14:05:15+01:00</updated>
<published>2012-08-14T14:05:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=846&amp;p=3225#p3225</id>
<link href="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3225#p3225"/>
<title type="html"><![CDATA[Re: Deploying an php validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=846&amp;p=3225#p3225"><![CDATA[
Hello,<br /><br />Have you made sure the mysql module is loaded in php? If you're sure that it is, can you paste the exact falure you get here?<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Tue Aug 14, 2012 2:05 pm</p><hr />
]]></content>
</entry>
</feed>