[packages/lighttpd] load authn_ldap

glen glen at pld-linux.org
Wed May 10 17:17:48 CEST 2017


commit aee014111c6f21885b554f612807dc7ed2160894
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed May 10 18:13:02 2017 +0300

    load authn_ldap
    
    fixes warnings from logs:
    
    2017-05-10 18:11:33: (configfile.c.41) Warning: please add "mod_authn_ldap" to server.modules list in lighttpd.conf.  A future release of lighttpd 1.4.x will not automatically load mod_authn_ldap and lighttpd will fail to start up since your lighttpd.conf uses auth.backend = "ldap".

 lighttpd.spec       | 7 ++++++-
 mod_authn_ldap.conf | 9 +++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/lighttpd.spec b/lighttpd.spec
index d00f5fe..b8a2644 100644
--- a/lighttpd.spec
+++ b/lighttpd.spec
@@ -39,7 +39,7 @@ Summary:	Fast and light HTTP server
 Summary(pl.UTF-8):	Szybki i lekki serwer HTTP
 Name:		lighttpd
 Version:	1.4.45
-Release:	1
+Release:	2
 License:	BSD
 Group:		Networking/Daemons/HTTP
 Source0:	http://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.xz
@@ -104,6 +104,7 @@ Source137:	%{name}-mod_cgi_php.conf
 Source138:	%{name}-mod_compress.tmpwatch
 Source139:	%{name}-mod_uploadprogress.conf
 Source140:	%{name}-mod_geoip.conf
+Source141:	mod_authn_ldap.conf
 # use branch.sh script to create branch.diff
 #Patch100:	%{name}-branch.diff
 ## Patch100-md5:	7bd09235304c8bcb16f34d49d480c0fb
@@ -1019,6 +1020,9 @@ cp -p %{SOURCE113} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_flv_streaming.con
 %if %{with geoip}
 cp -p %{SOURCE140} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_geoip.conf
 %endif
+%if %{with ldap}
+cp -p %{SOURCE141} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_authn_ldap.conf
+%endif
 %if %{with h264_streaming}
 cp -p %{SOURCE136} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_h264_streaming.conf
 %endif
@@ -1265,6 +1269,7 @@ fi
 
 %files mod_authn_ldap
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_authn_ldap.conf
 %attr(755,root,root) %{pkglibdir}/mod_authn_ldap.so
 
 %if %{with mysql}
diff --git a/mod_authn_ldap.conf b/mod_authn_ldap.conf
new file mode 100644
index 0000000..c83d4bd
--- /dev/null
+++ b/mod_authn_ldap.conf
@@ -0,0 +1,9 @@
+# ldap (mod_authn_ldap)
+#
+# The ldap backend performs the following steps to authenticate a user
+#
+# Documentation: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAuth#ldap-mod_authn_ldap
+
+server.modules += (
+	"mod_authn_ldap"
+)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lighttpd.git/commitdiff/aee014111c6f21885b554f612807dc7ed2160894



More information about the pld-cvs-commit mailing list