]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
load authn_ldap auto/th/lighttpd-1.4.45-2
authorElan Ruusamäe <glen@delfi.ee>
Wed, 10 May 2017 15:13:02 +0000 (18:13 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 10 May 2017 15:17:31 +0000 (18:17 +0300)
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
mod_authn_ldap.conf [new file with mode: 0644]

index d00f5fe686aaf3ab6363fbfcba2c31c7f80d8d33..b8a2644e6c78d4e0cbca3cf8515ed3bab9fa49e1 100644 (file)
@@ -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 (file)
index 0000000..c83d4bd
--- /dev/null
@@ -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"
+)
This page took 0.152447 seconds and 4 git commands to generate.