<?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=423" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2009-10-23T15:14:16+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=423</id>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2009-10-23T15:14:16+01:00</updated>
<published>2009-10-23T15:14:16+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=423&amp;p=1847#p1847</id>
<link href="https://forum.yubico.com/viewtopic.php?t=423&amp;p=1847#p1847"/>
<title type="html"><![CDATA[Re: Hosting my own validation server - issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=423&amp;p=1847#p1847"><![CDATA[
We can use a combine database for both YMS and YK_VAL. Please use the step by step YMS server installation guide available at the following link:<br /><br /><!-- l --><a class="postlink-local" href="http://forum.yubico.com/viewtopic.php?f=5&amp;t=315&amp;p=1418#p1418">viewtopic.php?f=5&amp;t=315&amp;p=1418#p1418</a><!-- l --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Fri Oct 23, 2009 3:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[erpico]]></name></author>
<updated>2009-10-23T14:14:11+01:00</updated>
<published>2009-10-23T14:14:11+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=423&amp;p=1846#p1846</id>
<link href="https://forum.yubico.com/viewtopic.php?t=423&amp;p=1846#p1846"/>
<title type="html"><![CDATA[Re: Hosting my own validation server - issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=423&amp;p=1846#p1846"><![CDATA[
Well yes I did modify the code, while I am trying to run validation server on mssql05. Ok. So as I understand I need two dbs, one for validation server with - like ykval-db.sql, and the other for ksm - like ykksm-db.sql, don't I? And if I want YMS I need to have another one, right? I am asking, because I am a little bit confused. Now I have a working validation. If you would like to check it I can send you an address and a sample yubikey settings.<br /><br />And while I am here, I would like to ask you about this part of getAuthData:<br /><br />$publicName = modhex2b64($devId);<br /><br />is it normal that $devId has a value of plain public part of otp retrieved from db? I mean it looks like vvsthsthsth?<br />and than after modhex2b64() it is send to db as a decrypted text?<br /><br />Because firstly I get client data from ksm_clients table in ksm-db, and than I am saving used otp into yubikeys table of ykval-db. I hope you understand what I am trying to say. If not I will write a longer post.<br /><br />Thanks for reply.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=923">erpico</a> — Fri Oct 23, 2009 2:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2009-10-23T10:31:15+01:00</updated>
<published>2009-10-23T10:31:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=423&amp;p=1844#p1844</id>
<link href="https://forum.yubico.com/viewtopic.php?t=423&amp;p=1844#p1844"/>
<title type="html"><![CDATA[Re: Hosting my own validation server - issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=423&amp;p=1844#p1844"><![CDATA[
It seems that you have modified the code. The actual code of the getAuthData function is as follows:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">function getAuthData($conn, $devId) {<br />        $publicName = modhex2b64($devId);<br />        $stmt =<br />          'SELECT id, active, counter, sessionUse, low, high, accessed '.<br />          'FROM yubikeys '.<br />          'WHERE publicName='.mysql_quote($publicName);<br />        $r = query($conn, $stmt);<br />        if (mysql_num_rows($r) &gt; 0) {<br />                $row = mysql_fetch_assoc($r);<br />                mysql_free_result($r);<br />                return $row;<br />        }<br />        return null;<br />} // End getAuthData<br /></div><br /><br />Here the &quot;yubikeys&quot; table used must be from the table from the YK_VAL database and not from the YK_KSM database. <br /><br />We would appreciate if you can check the database settings in the &quot;ykval-config.php&quot;. If they are pointing to YK_KSM database, please change them to point to YK_VAL database and update the code of &quot;getAuthData&quot; function to use the &quot;yubikeys&quot; table of the YK_VAL database.<br /><br />We hope this helps!<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Fri Oct 23, 2009 10:31 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[erpico]]></name></author>
<updated>2009-10-20T15:03:00+01:00</updated>
<published>2009-10-20T15:03:00+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=423&amp;p=1837#p1837</id>
<link href="https://forum.yubico.com/viewtopic.php?t=423&amp;p=1837#p1837"/>
<title type="html"><![CDATA[Hosting my own validation server - issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=423&amp;p=1837#p1837"><![CDATA[
Hi.<br /><br />First of all I would like to clarify my vision:<br /><br />I want to host my own validation server. I have MSSQL 05 Db, and php 5.2.x <br />. I have downloaded and successfully implemented ksm. And now I am trying to run my validation server and I am failing all the time. The most recent issue is that in function <br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">getAuthData($conn, $devId) {<br />   $publicName = modhex2b64($devId);<br />   $stmt =<br />     'SELECT id, active, counter, sessionUse, low, high, accessed '.<br />     'FROM ksm_yubikeys '.<br />     'WHERE publicName='.mssql_quote($publicName);<br />   $r = query($conn, $stmt);<br />   if (mssql_num_rows($r) &gt; 0) {<br />      $row = mssql_fetch_array($r);<br />      mssql_free_result($r);<br />      return $row;<br />   }<br />   return null;<br />}<br /></div><br />I get errors about invalid columns names 'counter' 'sessionUse' 'low' 'high' 'accessed'. And I know it is true, because my ksm_yubikeys table looks like this: [id] ,[serialNr] ,[publicName] ,[created] ,[internalName],[aesKey] ,[lockCode] ,[creator] ,[active] ,[hardware]. I though about creating a new table, but in this forum thread <!-- l --><a class="postlink-local" href="http://forum.yubico.com/viewtopic.php?f=5&amp;t=393">viewtopic.php?f=5&amp;t=393</a><!-- l --> there is nothing about any additional data tables. <br />Thanks for any clues.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=923">erpico</a> — Tue Oct 20, 2009 3:03 pm</p><hr />
]]></content>
</entry>
</feed>