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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-09-06T15:00:45+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=23&amp;t=2415</id>
<entry>
<author><name><![CDATA[VedPac]]></name></author>
<updated>2016-09-06T15:00:45+01:00</updated>
<published>2016-09-06T15:00:45+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8971#p8971</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8971#p8971"/>
<title type="html"><![CDATA[Re: Yubikey openVPN LDAP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8971#p8971"><![CDATA[
This also won't work (authenticate against ldap-server and yubikey), same error:<br />auth required pam_yubico.so ldap_uri=ldap://xxxxx   id=xxx authfile=/usr/local/etc/openvpn/yubikey_mappings debug<br />  ldapdn=dc=ad,dc=next-audience,dc=net<br />   ldap_filter=(&amp;(sAMAccountName=%u)(memberOf=CN=mygroup,OU=DefaultUser,DC=adivser,DC=net))<br />   ldap_bind_user=bind_user ldap_bind_password=bind_password try_first_pass<br />account required  pam_yubico.so<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4471">VedPac</a> — Tue Sep 06, 2016 3:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[VedPac]]></name></author>
<updated>2016-09-06T14:56:34+01:00</updated>
<published>2016-09-06T14:56:34+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8970#p8970</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8970#p8970"/>
<title type="html"><![CDATA[Re: Yubikey openVPN LDAP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8970#p8970"><![CDATA[
Hi Spork,<br /><br />thanks for th reply.<br /><br />We want to use two factor authentication for OpenVPN using YubiKey.<br />That means openVPN will prompt a login (username/password), the user will authenticate against our LDAP-Server.<br />If it succeeded then authenticate again using Yubikey.<br /><br />Here is the configs:<br /><br />client.ovpn(client)<br />auth-user-pass<br /><br />openvpn.conf (server)<br />plugin openvpn-plugin-auth-pam.so openvpn<br /><br />/usr/local/etc/pam.d/openvpn:<br />auth  required  pam_yubico.so ldap_uri=ldap://ldap-srv debug id=[Your API Client ID] yubi_attr=pager<br />   ldapdn=dc=ad,dc=next-audience,dc=net<br />   ldap_filter=(&amp;(sAMAccountName=%u)(memberOf=CN=mygroup,OU=DefaultUser,DC=adivser,DC=net))<br />   ldap_bind_user=bind_user ldap_bind_password=bind_password try_first_pass<br />account required  pam_yubico.so<br /><br />Regards<br />VedPac<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4471">VedPac</a> — Tue Sep 06, 2016 2:56 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SporkWitch]]></name></author>
<updated>2016-09-06T14:39:17+01:00</updated>
<published>2016-09-06T14:39:17+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8969#p8969</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8969#p8969"/>
<title type="html"><![CDATA[Re: Yubikey openVPN LDAP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8969#p8969"><![CDATA[
Based on what you've written, it's unclear how openVPN fits into your planned setup.  There is a separate PAM plugin for LDAP authentication that you don't seem to mention here.  There's still another plugin for using the yubikey as the second factor (and another if you want to use u2f specifically).<br /><br />Could you clarify your intentions a bit more so I know where to troubleshoot?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4454">SporkWitch</a> — Tue Sep 06, 2016 2:39 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[VedPac]]></name></author>
<updated>2016-09-06T07:56:07+01:00</updated>
<published>2016-09-06T07:56:07+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8968#p8968</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8968#p8968"/>
<title type="html"><![CDATA[Yubikey openVPN LDAP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2415&amp;p=8968#p8968"><![CDATA[
Hello,<br /><br />try according to<br /><!-- m --><a class="postlink" href="https://developers.yubico.com/yubico-pam/">https://developers.yubico.com/yubico-pam/</a><!-- m --><br />to set-up 2-factor-authentifications on FreeBSD with: openVPN with LDAP-Authentification and Yubikey.<br /><br />But get error message: PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1.<br />---<br />Mon Sep  5 14:47:05 2016 172.23.3.8:35857 TLS: Initial packet from [AF_INET]172.23.3.8:35857, sid=159c136d 2cb1a27d<br />Mon Sep  5 14:47:05 2016 172.23.3.8:35857 PLUGIN_CALL: POST openvpn-plugin-auth-pam.so/PLUGIN_AUTH_USER_PASS_VERIFY status=1<br />Mon Sep  5 14:47:05 2016 172.23.3.8:35857 PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1: openvpn-plugin-auth-pam.so<br />Mon Sep  5 14:47:05 2016 172.23.3.8:35857 TLS Auth Error: Auth Username/Password verification failed for peer<br />Mon Sep  5 14:47:05 2016 172.23.3.8:35857 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA<br />Mon Sep  5 14:47:05 2016 172.23.3.8:35857 Peer Connection Initiated with [AF_INET]172.23.3.8:35857<br />Mon Sep  5 14:47:07 2016 172.23.3.8:35857 PUSH: Received control message: 'PUSH_REQUEST'<br />Mon Sep  5 14:47:07 2016 172.23.3.8:35857 Delayed exit in 5 seconds<br />Mon Sep  5 14:47:07 2016 172.23.3.8:35857 SENT CONTROL [UNDEF]: 'AUTH_FAILED' (status=1)<br />Mon Sep  5 14:47:07 2016 172.23.3.8:35857 TLS Error: local/remote TLS keys are out of sync: [AF_INET]172.23.3.8:35857 [0]<br />Mon Sep  5 14:47:08 2016 172.23.3.8:35857 TLS Error: local/remote TLS keys are out of sync: [AF_INET]172.23.3.8:35857 [0]<br /><br /><br />Mon Sep  5 14:47:09 2016 172.23.3.8:35857 TLS Error: local/remote TLS keys are out of sync: [AF_INET]172.23.3.8:35857 [0]<br />Mon Sep  5 14:47:11 2016 172.23.3.8:35857 TLS Error: local/remote TLS keys are out of sync: [AF_INET]172.23.3.8:35857 [0]<br />Mon Sep  5 14:47:12 2016 172.23.3.8:35857 SIGTERM[soft,delayed-exit] received, client-instance exiting<br />---<br />openvpn.conf on Server:<br />plugin openvpn-plugin-auth-pam.so openvpn<br /><br />If it changed to<br />plugin openvpn-plugin-auth-pam.so system-auth<br /><br />then no error, but of it the authentification use local System user, which is not what I want: authetification against ldap server (1. factor) and Yubikey (2. factor).<br /><br />Kind Regards<br />VedPac<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4471">VedPac</a> — Tue Sep 06, 2016 7:56 am</p><hr />
]]></content>
</entry>
</feed>