Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (68 sloc) 2.69 KB
%define name duo_openvpn
%define version 0.5.1
%define release 1
%define prefix /usr
%define mybuilddir %{_builddir}/%{name}-%{version}-root
Summary: Duo two-factor authentication for OpenVPN
Name: %{name}
Version: %{version}
License: BSD
Release: %{release}
Packager: Jan Schaumann <>
Group: Utilities/Misc
Source: %{name}-%{version}.tar.gz
BuildRoot: /tmp/%{name}-%{version}-root
Requires: python26, perl, perl-JSON-XS, perl-Digest-HMAC, perl-URI
Duo provides simple two-factor authentication as a service via:
* Phone callback
* SMS-delivered one-time passcodes
* Duo mobile app to generate one-time passcodes
* Duo mobile app for smartphone push authentication
* Duo hardware token to generate one-time passcodes
This package provides the OpenVPN authentication plugin and scripts.
%setup -q
mkdir -p %{mybuilddir}%{prefix}/bin
mkdir -p %{mybuilddir}%{prefix}/lib
mkdir -p %{mybuilddir}%{prefix}/share/duo
cp ca_certs.pem %{mybuilddir}%{prefix}/share/duo/ca_certs.pem
cp %{name}.pl %{mybuilddir}%{prefix}/share/duo/%{name}.pl
cp %{name}.py %{mybuilddir}%{prefix}/share/duo/%{name}.py
cp %{name}.so %{mybuilddir}%{prefix}/lib/%{name}.so
cp %{name} %{mybuilddir}%{prefix}/lib/%{name}
cp %{mybuilddir}%{prefix}/share/duo/
ln -s %{prefix}/share/duo/%{name}.py %{mybuilddir}%{prefix}/bin/%{name}
* Fri Nov 16 2012 Jan Schaumann <>
- bump cache to 8 days, but do not refresh
* Fri Oct 10 2012 Jan Schaumann <>
- allow the plugin to cache username,IP pairs for a certain time without
re-authenticating with Duo; this allows connections from particularly
flakey networks to reconnect seemlessly without user interactions;
NOTE: this explicitly circumvents the authentication mechanism! Only
use this if you know what you are doing!
* Wed Oct 10 2012 Jan Schaumann <>
- rename some variable to be less confusing; no functional change
* Thu Aug 30 2012 Jan Schaumann <>
- allow fallback to another form of authentication if connections to Duo's
servers fail
* Mon Aug 27 2012 Jan Schaumann <>
- ignore SIGCHLD to avoid one zombie per authentication
* Tue Jul 17 2012 Jan Schaumann <>
- install two modules, one for 'composite' password, one regular
* Mon Jul 09 2012 Jan Schaumann <>
- first rpm version