File openvpn-auth-ldap.spec of Package openvpn-auth-ldap
#
# spec file for package openvpn-auth-ldap
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: openvpn-auth-ldap
URL: https://github.com/threerings/openvpn-auth-ldap
Version: 2.0.4
Release: 0
Summary: OpenVPN plugin providing username/password authentication via LDAP
License: BSD-3-Clause
Source: https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-objc
BuildRequires: openldap2-devel
BuildRequires: openvpn
BuildRequires: openvpn-devel
BuildRequires: re2c
BuildRequires: pkgconfig(openssl)
%description
The OpenVPN Auth-LDAP Plugin implements username/password authentication
via LDAP for OpenVPN 2.x.
Features
- User authentication against LDAP.
- Simple Apache-style configuration file.
- LDAP group-based access restrictions.
- Integration with the OpenBSD packet filter, supporting adding and
removing VPN clients from PF tables based on group membership.
- Tested against OpenLDAP, the plugin will authenticate against any
LDAP server that supports LDAP simple binds -- including Active
Directory.
%prep
%autosetup -n %{name}-auth-ldap-%{version}
%build
export CFLAGS="%{optflags} -fPIC -std=gnu99"
./regen.sh
%configure \
--with-objc-runtime=GNU \
--with-openvpn="%{_includedir}"
%make_build
%install
install -d %{buildroot}%{_libdir}/openvpn/plugins/
%make_install
mv %{buildroot}%{_libdir}/%{name}.so %{buildroot}%{_libdir}/openvpn/plugins/
%check
pushd tests
%make_build test
popd
%files
%license LICENSE
%doc README.md
%dir %{_libdir}/openvpn
%dir %{_libdir}/openvpn/plugins
%{_libdir}/openvpn/plugins/%{name}.so
%changelog