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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=132</id>
<entry>
<author><name><![CDATA[dave_marsh_pw]]></name></author>
<updated>2009-12-21T18:07:32+01:00</updated>
<published>2009-12-21T18:07:32+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=1935#p1935</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=1935#p1935"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=1935#p1935"><![CDATA[
Most excellent.  It worked.  <br /><br />Any plans to incorporate that change into the next version?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=949">dave_marsh_pw</a> — Mon Dec 21, 2009 6:07 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2009-12-21T14:17:00+01:00</updated>
<published>2009-12-21T14:17:00+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=1934#p1934</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=1934#p1934"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=1934#p1934"><![CDATA[
Before starting the FreeRADIUS Server from the command line using the &quot;freeradius -X&quot; command, please execute the following command:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">export LD_PRELOAD=/lib/libpam.so.&lt;Version Number&gt;<br /></div><br />Please use the version number of the &quot;libpam.so&quot; library available for your platform.<br /><br />Also, please make the following listed changes to the Yubico PAM module, compile and install it again:<br /><br />1) Go to the directory where you have downloaded the source code of Yubico PAM module<br />2) Open &quot;pam_yubico.c&quot; file<br />3) Find the following code in the &quot;pam_yubico.c&quot; file:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">cfg-&gt;yubi_attr = NULL;<br /></div><br />4) Append the following code just after the &quot;cfg-&gt;yubi_attr = NULL;&quot; code:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">cfg-&gt;client_key = NULL;<br /></div><br />5) Save the changes to the file<br />6) Compile and install the Yubico PAM module again<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 Dec 21, 2009 2:17 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dave_marsh_pw]]></name></author>
<updated>2009-12-18T16:44:16+01:00</updated>
<published>2009-12-18T16:44:16+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=1933#p1933</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=1933#p1933"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=1933#p1933"><![CDATA[
as for all of the information requested by network-marvels:<br /><br />1) OS: Ubuntu 9.10<br />2) FreeRADIUS Version 2.1.0<br />3) Yubico PAM: 2.2<br />4-6) The files are way too large to paste in here and the forum system won't allow me to upload them (it doesn't like the .conf or .txt file extension).   Should I just paste them in here or is there a better way?<br />7) <br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth required pam_yubico.so id=2 debug authfile=/etc/freeradius/yubico.mapping url=http://10.x.x.x:8180/wsapi/verify?id=%d&amp;otp=%s<br /></div><br />8)SELinux status:                 disabled<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=949">dave_marsh_pw</a> — Fri Dec 18, 2009 4:44 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dave_marsh_pw]]></name></author>
<updated>2009-12-18T16:23:40+01:00</updated>
<published>2009-12-18T16:23:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=1932#p1932</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=1932#p1932"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=1932#p1932"><![CDATA[
so, I realize this is an old topic but I am also having issues integrating PAM and FreeRadius.  <br /><br />I've followed everything in this thread (and searched the forums) but nothing seem to be working.<br /><br />It looks like FreeRadius is having trouble loading the PAM module.  I'm running FreeRadius from the command line so I can see the debug output.  The following is the relevant output:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Info: Found Auth-Type = PAM<br />Fri Dec 18 10:14:48 2009 : Info: +- entering group authenticate {...}<br />Fri Dec 18 10:14:48 2009 : Debug: pam_pass: using pamauth string &lt;radiusd&gt; for pam.conf lookup<br />Fri Dec 18 10:14:48 2009 : Debug: pam_pass: function pam_authenticate FAILED for &lt;yubikey&gt;. Reason: Module is unknown<br />Fri Dec 18 10:14:48 2009 : Info: ++&#91;pam&#93; returns reject<br />Fri Dec 18 10:14:48 2009 : Info: Failed to authenticate the user.<br /></div><br /><br />and here is my radiusd file in /etc/pam.d<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth required /lib/security/pam_yubico.so id=1 debug key=eraser authfile=/etc/freeradius/yubiauthfile.map url=http://yubikey/yubico/validation/ykval-verify?id=%d&amp;otp=%s</div><br /><br />If I change 'required' to 'sufficient' instead of 'module is unknown' I get &quot;permission denied&quot;.  If I replace the yubikey module with the pam_unix module radius authenticates just fine using the regular user password.<br /><br />I can test my validation server manually and it seems to work.  I have also configured SSH to use the exact same yubikey PAM with relatively no issues.  I've got pam spitting out debug messages and I see it appending output when I ssh but not when I use 'radtest'<br /><br />does anybody know what is going on?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=949">dave_marsh_pw</a> — Fri Dec 18, 2009 4:23 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Erik]]></name></author>
<updated>2009-01-20T15:45:47+01:00</updated>
<published>2009-01-20T15:45:47+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=943#p943</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=943#p943"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=943#p943"><![CDATA[
I found a way to make it work : <div class="codetitle"><b>Code:</b></div><div class="codecontent">export LD_PRELOAD=/lib/libpam.so.0.79</div><br />not very pretty, but it solves it for the moment.<br />could it be related with me using debian !?<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-22) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Tue Jun 17 21:31:27 UTC 2008</div><br />So it is just a part of the pam subsystem that is not loaded automagicly. I am not a developer, and not familiar with the pam setup, so - no clue at this time.<br /><br />But I can continue testing !<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=371">Erik</a> — Tue Jan 20, 2009 3:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2009-01-20T07:13:31+01:00</updated>
<published>2009-01-20T07:13:31+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=936#p936</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=936#p936"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=936#p936"><![CDATA[
We would appreciate if you can provide us the following information so that we can try to identify the exact problem and provide a solution:<br /><br /><ul>1) Operating System details (including distribution, major and minor version, etc.)<br />2) FreeRADIUS Server Version<br />3) Yubico PAM Version<br />4) FreeRADIUS Server Configuration file (radiusd.conf)<br />5) FreeRADIUS Clients Configuration file (clients.conf)<br />6) FreeRADIUS Users Configuration file (users)<br />7) FreeRADIUS Server PAM Configuration file (/etc/pam.d/radiusd)<br />8) SELinux Status (enforcing/permissive/disabled)<br /></ul><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Tue Jan 20, 2009 7:13 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Erik]]></name></author>
<updated>2009-01-19T14:41:24+01:00</updated>
<published>2009-01-19T14:41:24+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=934#p934</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=934#p934"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=934#p934"><![CDATA[
I too have this problem integrating with freeradius and pam<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Jan 19 15:18:01 yubico freeradius: PAM unable to dlopen(/lib/security/pam_yubico.so)<br />Jan 19 15:18:01 yubico freeradius: PAM &#91;dlerror: /lib/security/pam_yubico.so: undefined symbol: pam_get_item&#93;<br />Jan 19 15:18:01 yubico freeradius: PAM adding faulty module: /lib/security/pam_yubico.so</div><br /><br />I put this in /etc/pam.d/radiusd<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth required pam_yubico.so id=2 debug authfile=/etc/freeradius/yubico.mapping url=http://10.x.x.x:8180/wsapi/verify?id=%d&amp;otp=%s<br /></div><br /><br />I &quot;think&quot; I followed the cookbook on the forum, but ... no luck.<br />Can someone give me a hint.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=371">Erik</a> — Mon Jan 19, 2009 2:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Simon]]></name></author>
<updated>2008-07-24T12:25:28+01:00</updated>
<published>2008-07-24T12:25:28+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=475#p475</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=475#p475"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=475#p475"><![CDATA[
<div class="quotetitle">olebakk wrote:</div><div class="quotecontent"><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Jul 11 10:13:07 htpc freeradius: PAM &#91;error: /lib/security/pam_yubico.so: undefined symbol: pam_set_data&#93;<br />Jul 11 10:13:07 htpc freeradius: PAM adding faulty module: /lib/security/pam_yubico.so<br /></div><br /></div><br /><br />Does your PAM library have the pam_set_data symbol?  This seems like a weird error to me.<br /><br /><div class="quotetitle">olebakk wrote:</div><div class="quotecontent"><br />Here is my FreeRadius log:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">pam_pass: using pamauth string &lt;radiusd&gt; for pam.conf lookup<br />pam_pass: function pam_authenticate FAILED for &lt;olebakk&gt;. Reason: Module is unknown<br />  modcall&#91;authenticate&#93;: module &quot;pam&quot; returns reject for request 0<br />modcall: leaving group authenticate (returns reject) for request 0<br />auth: Failed to validate the user.<br /></div><br /></div><br /><br />This error seems like it suggests a simple problem: you need a PAM module file &quot;radiusd&quot; or possibly &quot;freeradius&quot;.  Which name depends on what freeradius uses for PAM module.  On my system, it uses &quot;radiusd&quot;.  So you will have to create a /etc/pam.d/radiusd with the proper PAM content (same as ssh file should work).  Does this help?<br /><br />/Simon<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2">Simon</a> — Thu Jul 24, 2008 12:25 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[paul]]></name></author>
<updated>2008-07-23T17:42:37+01:00</updated>
<published>2008-07-23T17:42:37+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=467#p467</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=467#p467"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=467#p467"><![CDATA[
From <!-- m --><a class="postlink" href="http://code.google.com/p/yubico-pam/wiki/ReadMe">http://code.google.com/p/yubico-pam/wiki/ReadMe</a><!-- m --><br />I copy Timm's solution here:<br /><br />---<br />Use Yubikey for SSH login<br /><br /><!-- m --><a class="postlink" href="http://code.google.com/p/yubico-pam/wiki/ReadMe">http://code.google.com/p/yubico-pam/wiki/ReadMe</a><!-- m --><br /><br />Comment by timm.tem, May 08, 2008<br /><br />Follow exact same instructions but add <br /><br />&quot;auth sufficient pam_yubico.so id=16 debug&quot; to <br /><br />/etc/pam.d/ssh at the top!! and the edit /etc/ssh/sshd_config <br /><br />and make sure that...<br /><br />ChallengeResponseAuthentication? yes <br /><br />UsePAM yes    <br /><br />Not required but good pratice <br /><br />PermitRootLogin? no<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=55">paul</a> — Wed Jul 23, 2008 5:42 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[paul]]></name></author>
<updated>2008-07-12T06:34:48+01:00</updated>
<published>2008-07-12T06:34:48+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=434#p434</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=434#p434"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=434#p434"><![CDATA[
Folks,<br /><br />Here are some of Yubikey PAM deployment cases with FreeRadius that works. Some requires a bit tweaking:<br /><br /><!-- l --><a class="postlink-local" href="http://forum.yubico.com/vpn/deployment_cases/">vpn/deployment_cases/</a><!-- l --><br /><br />Thanks for comments<br /><br /> <img src="https://forum.yubico.com/images/smilies/icon_e_geek.gif" alt=":geek:" title="Geek" /><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=55">paul</a> — Sat Jul 12, 2008 6:34 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[gorkab]]></name></author>
<updated>2008-07-11T18:49:01+01:00</updated>
<published>2008-07-11T18:49:01+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=428#p428</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=428#p428"/>
<title type="html"><![CDATA[Re: Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=428#p428"><![CDATA[
i'm trying to get the pam module working on etch, and am having problems there.  1.6 and 1.7 don't seem to authenticate (or even prompt), but logins fail when the yubico-pam module is enabled.<br /><br />debugging doesn't seem to be working either.   i've been beating on it for about a day now.  did you do anything special to get straight pam without radius running?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=194">gorkab</a> — Fri Jul 11, 2008 6:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[olebakk]]></name></author>
<updated>2008-07-11T12:00:43+01:00</updated>
<published>2008-07-11T12:00:43+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=132&amp;p=427#p427</id>
<link href="https://forum.yubico.com/viewtopic.php?t=132&amp;p=427#p427"/>
<title type="html"><![CDATA[Problem integrating PAM and FreeRadius]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=132&amp;p=427#p427"><![CDATA[
I've got a few problems getting the PAM modules working. SSH seem to manage to authenticate but doesn't log in, FreeRadius just fails with everything (even with alwaysok). I am using Ubuntu for the tests (as I assumed that would be more compatible than Solaris - which is my next platform to test when I get this working...). I have tried both 1.6 and the SVN 1.7 pre-release.<br /><br />Both seem to output this in my auth.log<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Jul 11 10:13:07 htpc freeradius: PAM &#91;error: /lib/security/pam_yubico.so: undefined symbol: pam_set_data&#93;<br />Jul 11 10:13:07 htpc freeradius: PAM adding faulty module: /lib/security/pam_yubico.so<br /></div><br /><br />Debug when using SSH - I can't get freeradius to create any debug (probably rejects the PAM):<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&#91;pam_yubico.c:pam_sm_authenticate(105)&#93; called.<br />&#91;pam_yubico.c:pam_sm_authenticate(106)&#93; flags 1 argc 2<br />&#91;pam_yubico.c:pam_sm_authenticate(108)&#93; argv&#91;0&#93;=id=205<br />&#91;pam_yubico.c:pam_sm_authenticate(108)&#93; argv&#91;1&#93;=debug<br />&#91;pam_yubico.c:pam_sm_authenticate(109)&#93; id=205<br />&#91;pam_yubico.c:pam_sm_authenticate(110)&#93; debug=1<br />&#91;pam_yubico.c:pam_sm_authenticate(111)&#93; alwaysok=0<br />&#91;pam_yubico.c:pam_sm_authenticate(122)&#93; get user returned: olebakk<br />&#91;pam_yubico.c:pam_sm_authenticate(132)&#93; get password returned: (null)<br />&#91;pam_yubico.c:pam_sm_authenticate(162)&#93; conv returned: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br />&#91;pam_yubico.c:pam_sm_authenticate(189)&#93; libyubikey-client return value (0): Success<br />&#91;pam_yubico.c:pam_sm_authenticate(210)&#93; done. &#91;Success&#93;<br />&#91;pam_yubico.c:pam_sm_setcred(221)&#93; called.<br />&#91;pam_yubico.c:pam_sm_setcred(246)&#93; done. &#91;Success&#93;<br /></div><br /><br />Here is my FreeRadius log:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">pam_pass: using pamauth string &lt;radiusd&gt; for pam.conf lookup<br />pam_pass: function pam_authenticate FAILED for &lt;olebakk&gt;. Reason: Module is unknown<br />  modcall&#91;authenticate&#93;: module &quot;pam&quot; returns reject for request 0<br />modcall: leaving group authenticate (returns reject) for request 0<br />auth: Failed to validate the user.<br /></div><br /><br />FYI: libyubikey-client seems to work just fine.<br /><br />Any ideas?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=203">olebakk</a> — Fri Jul 11, 2008 12:00 pm</p><hr />
]]></content>
</entry>
</feed>