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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2010-10-08T19:25:00+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=574</id>
<entry>
<author><name><![CDATA[fmedery]]></name></author>
<updated>2010-10-08T19:25:00+01:00</updated>
<published>2010-10-08T19:25:00+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=574&amp;p=2377#p2377</id>
<link href="https://forum.yubico.com/viewtopic.php?t=574&amp;p=2377#p2377"/>
<title type="html"><![CDATA[Re: pam_yubico error : undefined symbol: pam_set_data]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=574&amp;p=2377#p2377"><![CDATA[
I found the problem :<br />I had the following line to /etc/init.d/openvpn:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">export LD_PRELOAD=/lib64/libpam.so.0.81.5</div><br />Software used : <br />Centos 5.5 (64 bits )+ EPEL repo. All packages below from this repo<br />ykclient-2.2-1.el5 <br />openvpn-2.1.1-2.el5 <br />pam_yubico-2.1-2.el5<br /><br />I used /etc/pam.d/login to create /etc/pam.d/openvpn<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">#%PAM-1.0<br />auth       required     pam_yubico.so authfile=/etc/yubikey_mappings id=16 debug<br />auth &#91;user_unknown=ignore success=ok ignore=ignore default=bad&#93; pam_securetty.so<br />auth       include      system-auth<br />account    required     pam_nologin.so<br />account    include      system-auth<br />password   include      system-auth<br /># pam_selinux.so close should be the first session rule<br />session    required     pam_selinux.so close<br />session    include      system-auth<br />session    required     pam_loginuid.so<br />session    optional     pam_console.so<br /># pam_selinux.so open should only be followed by sessions to be executed in the user context<br />session    required     pam_selinux.so open<br />session    optional     pam_keyinit.so force revoke</div><br /><br />And modified /etc/openvpn/server.conf<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">username-as-common-name<br />plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so openvpn</div><br /><br />I hope this help<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1376">fmedery</a> — Fri Oct 08, 2010 7:25 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[fmedery]]></name></author>
<updated>2010-10-05T22:02:01+01:00</updated>
<published>2010-10-05T22:02:01+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=574&amp;p=2367#p2367</id>
<link href="https://forum.yubico.com/viewtopic.php?t=574&amp;p=2367#p2367"/>
<title type="html"><![CDATA[pam_yubico error : undefined symbol: pam_set_data]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=574&amp;p=2367#p2367"><![CDATA[
Hello I just received my yubikey and I am trying to configure openvpn with pam on CentOS 5.5 32 bits (tried on 64 bits too). I m not using radius<br /><br />I install ykclient and can get auth with the api.yubico.com server<br /><br />I can  connect and use openvpn with certs + username +password.<br />I modified the server file for the yubikey+openvpn (last line)<br /><br /><span style="color: #0000FF">server.conf</span><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">local 192.168.4.16<br />port 443<br />proto tcp<br />dev tun<br />ca    /etc/openvpn/easy-rsa/2.0/keys/ca.crt<br />cert    /etc/openvpn/easy-rsa/2.0/keys/vpn.lexum.com.crt<br />crl-verify /etc/openvpn/easy-rsa/2.0/keys/crl.pem<br />dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem<br />server 192.168.5.0 255.255.255.0<br />ifconfig-pool-persist ipp.txt<br />push  &quot;dhcp-option WINS 192.168.4.29&quot;<br />keepalive 10 120<br />comp-lzo<br />user   openvpn<br />group    openvpn<br />persist-key<br />persist-tun<br />status openvpn-status.log<br />log-append  /var/log/openvpn.log<br />verb 3<br />username-as-common-name<br />plugin /usr/lib/openvpn/plugin/lib/openvpn-auth-pam.so openvpn</div><br /><br />Now I create several files :<br />/etc/pam.d/openvpn<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">#%PAM-1.0<br />auth required /lib/security/pam_yubico.so id=2 authfile=/etc/openvpn/yubikey_mapping<br />auth       include      system-auth<br />account    include      system-auth<br />password   include      system-auth<br />session    include      system-auth</div><br /><br />and /etc/openvpn/yubikey_mapping<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">user1:ccccceedtieb<br /></div><br /><br />Now on the windows station I launch the openvpn client and type at the prompt:<br />username<br />password+press the yubikey to get the OTP<br /><br />But I have this error :<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />PAM unable to dlopen(/lib/security/pam_yubico.so)<br />Oct  5 16:46:41 parma openvpn[3730]: PAM [error: /lib/security/pam_yubico.so: undefined symbol: pam_set_data]<br />Oct  5 16:46:41 parma openvpn[3730]: PAM adding faulty module: /lib/security/pam_yubico.so<br /></div><br /><br />There is no connection to the api.yubico.com (using tcpdump)<br /><br />I tried with pam_yubico 2.1.2 (EPEL repository) and 2.5 from source bu the problem is always the same<br /><br />Any idea ?<br /><br />TX<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1376">fmedery</a> — Tue Oct 05, 2010 10:02 pm</p><hr />
]]></content>
</entry>
</feed>