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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2009-12-11T13:32:50+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=438</id>
<entry>
<author><name><![CDATA[Bora2]]></name></author>
<updated>2009-12-11T13:32:50+01:00</updated>
<published>2009-12-11T13:32:50+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1930#p1930</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1930#p1930"/>
<title type="html"><![CDATA[Re: Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1930#p1930"><![CDATA[
How about I post step by step what I have done when I was following the guide and maybe you can see where the issue is.<br /><br />I decided to give it a clean start on the following system below;<br /><br />Systems used;<br />Server 1 Linux yubikey authentication stuff / radius  running;  Linux yubi.domain.com 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:12:36 EST 2009 x86_64 x86_64 x86_64 GNU/Linux<br /><br />Server 2; Windows 2008 Enterprise ActiveDirectory/LDAP (mail.domain.com)<br /><br />---------<br /><br />Server 1;<br />svn checkout <!-- m --><a class="postlink" href="http://yubico-pam.googlecode.com/svn/branches/RADIUS_on_Premise/">http://yubico-pam.googlecode.com/svn/br ... n_Premise/</a><!-- m --><br />autoreconf --install<br /><br />At this point we should need yubico-c-client on our system so we go to <!-- m --><a class="postlink" href="http://yubico-c-client.googlecode.com/svn/branches/RADIUS_on_Premise/">http://yubico-c-client.googlecode.com/s ... n_Premise/</a><!-- m --> and check it out<br /><br />make -f simple.mk check (now here I get an error)<br /><br />------------------------------------------------------<br />[root@yubi yubico-c-client]# make -f simple.mk check<br />cc -I. -Wall -g -DPACKAGE=\&quot;yubikey-client\&quot; -DPACKAGE_VERSION=\&quot;0\&quot;   -c -o libykclient.o libykclient.c<br />libykclient.c: In function âyubikey_client_simple_requestâ:<br />libykclient.c:122: warning: passing argument 3 of âyubikey_client_requestâ discards qualifiers from pointer target type<br />libykclient.c: In function âyubikey_client_requestâ:<br />libykclient.c:251: warning: implicit declaration of function âasprintfâ<br />libykclient.c:274: warning: format â%dâ expects type âintâ, but argument 2 has type âsize_tâ<br />libykclient.c:274: warning: field precision should have type âintâ, but argument 3 has type âsize_tâ<br />libykclient.c:288: warning: format â%dâ expects type âintâ, but argument 2 has type âsize_tâ<br />cc -I. -Wall -g -DPACKAGE=\&quot;yubikey-client\&quot; -DPACKAGE_VERSION=\&quot;0\&quot;  -lcurl  ykclient.c libykclient.o   -o ykclient<br />cc -I. -Wall -g -DPACKAGE=\&quot;yubikey-client\&quot; -DPACKAGE_VERSION=\&quot;0\&quot;  -lcurl  selftest.c libykclient.o   -o selftest<br />selftest.c: In function âmainâ:<br />selftest.c:46: error: too few arguments to function âyubikey_client_requestâ<br />selftest.c:54: error: too few arguments to function âyubikey_client_requestâ<br />make: *** [selftest] Error 1<br /><br /><br />---------------<br /><br />However that error is with the selftest binary not with the ykclient binary. So I assume we can ignore it? because running ./ykclient gives valid output.<br /><br />[root@yubi yubico-c-client]# ./ykclient<br />Usage: ./ykclient &lt;client_id&gt; &lt;yubikey_output&gt;<br /> CLIENT_ID: your client id integer<br /> YUBIKEY_OUTPUT: One-time password generated by yubikey<br /><br />so now the binary is installed, we continue with yubico-pam installation by ./configure &amp;&amp; make check install <br /><br />now added line auth        required      pam_yubico.so id=1 debug userauth to /etc/pam.d/radiusd (Dont know why id=1)<br /><br />moved file mv /usr/local/lib/security/pam_yubico.so /lib/security/<br /><br /><br />----------<br /><br />update time<br /><br /><br />[root@yubi RADIUS_on_Premise]# /etc/rc.d/init.d/ntpd stop<br />Shutting down ntpd:                                        [  OK  ]<br />[root@yubi RADIUS_on_Premise]# ntpdate -u mail.domain.com<br />11 Dec 07:50:57 ntpdate[3646]: step time server 188.72.203.12 offset 111.215262 sec<br />[root@yubi RADIUS_on_Premise]# /etc/rc.d/init.d/ntpd start<br />Starting ntpd:                                             [  OK  ]<br /><br /><br />-------<br /><br />configured the files <br /><br />------<br /><br />[root@noc RADIUS_on_Premise]# radtest test test123vrkvfefuitvflvgufcdlbjufkggukufkebeildbdkkjc 127.0.0.1 0 testing123<br />Sending Access-Request of id 114 to 127.0.0.1 port 1812<br />        User-Name = &quot;test&quot;<br />        User-Password = &quot;test123vrkvfefuitvflvgufcdlbjufkggukufkebeildbdkkjc&quot;<br />        NAS-IP-Address = 208.69.34.132<br />        NAS-Port = 0<br />rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=114, length=53<br />        Reply-Message = &quot;Your account has been disabled.&quot;<br /><br />---<br /><br />Now lets continue with the OTP parts.<br /><br />--- SVN CHECKOUT<br />yms<br />yubico-php-lib<br />yubikey-val-server-php<br />yubiphpbase<br /><br />so I assume we need to setup phpbase.<br /><br />$aesKey = $aes-&gt;makeKey('bklftrkvbvg.....fbedtjerrbbcgkuk') change that with some random characters I believe? in yubico-php-lib/AES128.php<br /><br />now setup_schema.sql is setup as yubico database.<br />Now editing config.php (I believe where the problem is)<br /><br />However it is 6 AM so I will update this later, and if I get it to work this time, I will write a detailed guide. (if the problem is what I think it is, its a simple mistake)<br /><br />--- Now here is the main bug that causes issues...<br /><br />* Connected to DB successfully<br />Insert root client<br />Invalid query -- INSERT INTO clients VALUES (1,1,1,NOW(),'bora@domain.com','secrethere','Root client',0,0,1,0,0) -- Column count doesn't match value count at row 1[root@yubi yubiphpbase]#<br /><br /><br />mysql&gt; describe clients;<br />+-----------+--------------+------+-----+---------------------+----------------+<br />| Field     | Type         | Null | Key | Default             | Extra          |<br />+-----------+--------------+------+-----+---------------------+----------------+<br />| id        | int(11)      | NO   | PRI | NULL                | auto_increment |<br />| perm_id   | int(11)      | YES  | MUL | NULL                |                |<br />| active    | tinyint(1)   | YES  |     | NULL                |                |<br />| created   | datetime     | NO   |     | 0000-00-00 00:00:00 |                |<br />| email     | varchar(255) | NO   | UNI |                     |                |<br />| secret    | varchar(60)  | NO   |     |                     |                |<br />| notes     | varchar(100) | YES  |     | NULL                |                |<br />| chk_sig   | tinyint(1)   | NO   |     | 0                   |                |<br />| chk_owner | tinyint(1)   | NO   |     | 0                   |                |<br />+-----------+--------------+------+-----+---------------------+----------------+<br />9 rows in set (0.00 sec)<br /><br />id = 1<br />perm_id = 1<br />active = 1<br />created = NOW() (so the date)<br />email = <!-- e --><a href="mailto:bora@domain.com">bora@domain.com</a><!-- e --><br />secret = secrethere<br />notes = root client<br />chk_sig = 0<br />chk_owner = 0<br /><br />(1x 1, and 2 x 0 is too much in the query!!!) the right query should be <br /><br />INSERT INTO clients VALUES (1,1,1,NOW(),'bora@domain.com','secrethere','Root client',0,0)<br />and not <br />INSERT INTO clients VALUES (1,1,1,NOW(),'bora@domain.com','secrethere','Root client',0,0,1,0,0)<br /><br />manually entering the right query to see if it changes anything...<br /><br />Once you edit install.php to the riqht query you can get past the yms page via the otp, then you enter your pin but this time you receive the following error.<br /><br />Notice: Undefined variable: _SESSION in /var/www/yubico/yms/yubi_askpin.php on line 72<br />Invalid query -- SELECT id, pin FROM admin WHERE keyid= -- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1<br /><br /><br />adding the following line<br />session_start();<br />after <br />&lt;?php require_once '../yubico-php-lib/AES128.php'; in /var/www/yubiphpbase/appinclude.php solved the issue now i can login to the user management interface at yms <br /><br />So this was a success.<br /><br />Do you want me to send you the changed files so you can fix them and add them to SVN???<br /><br />-------------------<br /><br />Clicking users page;<br /><br />Notice: Undefined variable: findkey in /var/www/yubico/yms/list_users.php on line 111<br /><br />Notice: Undefined variable: attrName in /var/www/yubico/yms/list_users.php on line 126<br /><br />Notice: Undefined variable: attrVal in /var/www/yubico/yms/list_users.php on line 126<br />Invalid query -- SELECT COUNT(*) AS C FROM users WHERE user_status=1 -- Table 'yubico.users' doesn't exist <br /><br />(Will investigate this now or later) and post back.<br /><br /><br />GOT STUCK here!! cant find the schema for the users table...<br /><br />Also how do we  enter the username in THE ad?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=963">Bora2</a> — Fri Dec 11, 2009 1:32 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2009-12-08T10:36:27+01:00</updated>
<published>2009-12-08T10:36:27+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1923#p1923</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1923#p1923"/>
<title type="html"><![CDATA[Re: Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1923#p1923"><![CDATA[
We would appreciate if you can let us know the exact issues you are facing while installing the VMWare image so that we can try to debug it and suggest a possible solution.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Tue Dec 08, 2009 10:36 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bora2]]></name></author>
<updated>2009-12-07T13:13:50+01:00</updated>
<published>2009-12-07T13:13:50+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1919#p1919</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1919#p1919"/>
<title type="html"><![CDATA[Re: Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1919#p1919"><![CDATA[
Ouch<br /><br />I was unable to setup even the VMWARE image...l  IT must be outdated!!<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=963">Bora2</a> — Mon Dec 07, 2009 1:13 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2009-11-30T07:22:57+01:00</updated>
<published>2009-11-30T07:22:57+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1894#p1894</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1894#p1894"/>
<title type="html"><![CDATA[Re: Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1894#p1894"><![CDATA[
Yubico has developed a ModHex calculator which you can use to convert the AES Key is base64 format. The ModHex calculator is available at the following link:<br /><br /><!-- m --><a class="postlink" href="http://www.yubico.com/developers/modhex/">http://www.yubico.com/developers/modhex/</a><!-- m --><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> — Mon Nov 30, 2009 7:22 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bora2]]></name></author>
<updated>2009-11-30T05:39:31+01:00</updated>
<published>2009-11-30T05:39:31+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1893#p1893</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1893#p1893"/>
<title type="html"><![CDATA[Re: Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1893#p1893"><![CDATA[
Ok, so I tried to use the VMWARE image to see if I Was doing something wrong and I get badOTP's all the time..<br /><br />So how do we base64 encode the values that we are asked by the installer? <br /><br />do we have to use utils.php? the output of utils.php (the secrets etc.) when we decrypt them via base64 we get *Íå£ÈwÎ¡¿`«<br />7r<br />auñQ52rËTæ<br />|aAC<br /><br /><br />type of random data.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=963">Bora2</a> — Mon Nov 30, 2009 5:39 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bora2]]></name></author>
<updated>2009-11-30T03:49:44+01:00</updated>
<published>2009-11-30T03:49:44+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1892#p1892</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1892#p1892"/>
<title type="html"><![CDATA[Re: Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1892#p1892"><![CDATA[
I somehow (please dont ask) managed to accidentally flash my key which I used to authenticate on the forums, so I uploaded my new AES keys, but I can't access my username, is there a way to get my username back?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=963">Bora2</a> — Mon Nov 30, 2009 3:49 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bora]]></name></author>
<updated>2009-11-28T17:15:14+01:00</updated>
<published>2009-11-28T17:15:14+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1887#p1887</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1887#p1887"/>
<title type="html"><![CDATA[Re: Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1887#p1887"><![CDATA[
Yeah<br /><br />Followed that guide but I cant login to YMS and the some validator files are missing.<br /><br />do we have o get both the trunk + the RADIUS_on_Premise branch?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=706">Bora</a> — Sat Nov 28, 2009 5:15 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2009-11-27T16:12:08+01:00</updated>
<published>2009-11-27T16:12:08+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1886#p1886</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1886#p1886"/>
<title type="html"><![CDATA[Re: Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1886#p1886"><![CDATA[
Please refer to the following Wiki link which provides the overview and the configuration documents required for using the RADIUS_on_Premise solution:<br /><br /><!-- m --><a class="postlink" href="http://wiki.yubico.com/wiki/index.php/Applications:RADIUS_on_Premise">http://wiki.yubico.com/wiki/index.php/A ... on_Premise</a><!-- m --><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 Nov 27, 2009 4:12 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bora]]></name></author>
<updated>2009-11-27T05:54:24+01:00</updated>
<published>2009-11-27T05:54:24+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=438&amp;p=1885#p1885</id>
<link href="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1885#p1885"/>
<title type="html"><![CDATA[Yubikey Radius on premise]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=438&amp;p=1885#p1885"><![CDATA[
HEllo,<br /><br />We are trying to integrate yubikey with radius on linux + ActiveDirectory / LDAP on windows but none of the guides are getting us anywhere. (There isn't a real documentation.) Does anyone have a more detailed documentation?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=706">Bora</a> — Fri Nov 27, 2009 5:54 am</p><hr />
]]></content>
</entry>
</feed>