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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-01-24T18:51:26+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=2541</id>
<entry>
<author><name><![CDATA[NorbertR]]></name></author>
<updated>2017-01-24T18:51:26+01:00</updated>
<published>2017-01-24T18:51:26+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2541&amp;p=9314#p9314</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2541&amp;p=9314#p9314"/>
<title type="html"><![CDATA[[Q?] OpenVPN\yubico\LDAP stack smash det: openvpn terminated]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2541&amp;p=9314#p9314"><![CDATA[
Hello Guys<br />I have installed OpenVPN with your pam_yubico Module as suggested at <!-- m --><a class="postlink" href="https://developers.yubico.com/yubico-pam/">https://developers.yubico.com/yubico-pam/</a><!-- m --> on a fresh installed Ubuntu Server 16.04 LTS and now the OpenVPN crashes every time a user wants to connect since i have added the account line in the PAM Configuration-file for OpenVPN.<br />before the setup works fine with my own account which is present at the local machine, now i wanted a test with a new testing user and discovered that the account required line is needed. So i added it and now it's crashing the openVPN... any suggestions why this happens?<br /><br />My Config-Files are<br /><em>/etc/openvpn/server.conf</em><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&#91;...&#93;<br />plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn<br /></div><br /><br /><em>/etc/pam.d/openvpn</em><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth required pam_yubico.so id=&lt;ID&gt; \<br />        yubi_attr=&lt;ATTRName&gt; \<br />        capath=/etc/ssl/certs \<br />        ldap_uri=ldap://ad.intern.dc.de/ \<br />        ldapdn=ou=worker,dc=intern,dc=dc,dc=de \<br />        ldap_bind_user=user@intern.dc.de ldap_bind_password=&lt;passwd&gt; \<br />        ldap_filter=(&amp;(sAMAccountName=%u)(memberOf=CN=group,OU=worker,DC=intern,DC=dc,DC=de)) \<br />        try_first_pass<br />account required pam_yubico.so<br /></div><br /><br />And the corresponding logfile-lines are<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&#91;../pam_yubico.c:authorize_user_token_ldap(286)&#93; try bind with: user@intern.dc.de:&#91;&lt;passwd&gt;&#93;<br />&#91;../pam_yubico.c:authorize_user_token_ldap(319)&#93; LDAP : look up object base='ou=worker,dc=intern,dc=dc,dc=de' filter='(&amp;(sAMAccountName=vpnuser)(memberOf=CN=group,OU=worker,DC=intern,DC=dc,DC=de))', ask for attribute '&lt;ATTRName&gt;'<br />&#91;../pam_yubico.c:authorize_user_token_ldap(355)&#93; LDAP : Found 1 values - checking if any of them match '&lt;yubiKey&gt;::&lt;yubiKey&gt;'<br />&#91;../pam_yubico.c:authorize_user_token_ldap(362)&#93; Token Found :: &lt;yubiKey&gt;<br />&#91;../pam_yubico.c:pam_sm_authenticate(1095)&#93; done. &#91;Success&#93;<br />&#91;../pam_yubico.c:pam_sm_acct_mgmt(1128)&#93; pam_sm_acct_mgmt returing PAM_SUCCESS<br />*** stack smashing detected ***: /usr/sbin/openvpn terminated</div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4638">NorbertR</a> — Tue Jan 24, 2017 6:51 pm</p><hr />
]]></content>
</entry>
</feed>