<?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=8&amp;t=323" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2009-05-01T20:52:02+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=8&amp;t=323</id>
<entry>
<author><name><![CDATA[rvetter]]></name></author>
<updated>2009-05-01T20:52:02+01:00</updated>
<published>2009-05-01T20:52:02+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=323&amp;p=1443#p1443</id>
<link href="https://forum.yubico.com/viewtopic.php?t=323&amp;p=1443#p1443"/>
<title type="html"><![CDATA[Yubikey PAM + Freeradius + Mysql]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=323&amp;p=1443#p1443"><![CDATA[
I am currently using freeradius server with user accounts stored in a mysql database. I was looking to implement the yubikeys with my freeradius server in a password+yubikey setup. I was held up because I didn't want to store my users as local user accounts on my freeradius server. I setup a test box and messed around with a few ideas on how to get it working and I finally got something to work. I figured I would share my results if anyone is interested. <br /><br />I was was able to get the mysql authentication to work by using both the yubikey PAM module and the pam-mysql module <!-- m --><a class="postlink" href="http://pam-mysql.sourceforge.net/">http://pam-mysql.sourceforge.net/</a><!-- m -->. I just pointed the pam-mysql module to look at the mysql table I was already using with my freeradius mysql setup. I wanted to migrate users from mysql authentication to yubikey+mysql authentication. Using the radgoupcheck table I set the Auth-Type :=  Pam, and the Fall-Through := 1, so I could migrate users group by group.<br /><br />pam radius config file<br />---------------------<br />authrequiredpam_yubico.so authfile=/etc/yubikeyid id=16 debug<br />authrequired/lib/security/pam_mysql.so user=dbadmin passwd=xxx host=localhost db=radius_db01 table=radcheck usercolumn=UserName passwdcolumn=Value crypt=0<br />accountrequired/lib/security/pam_mysql.so user=dbadmin passwd=xxx host=localhost db=radius_db01 table=radcheck usercolumn=UserName passwdcolumn=Value crypt=0<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=611">rvetter</a> — Fri May 01, 2009 8:52 pm</p><hr />
]]></content>
</entry>
</feed>