From e1bcc27f1aaba77d4b8263250f5a95199fa36453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 7 Apr 2016 11:37:19 +0200 Subject: [PATCH] Making trac/ldap handle httpd 2.4. The option authzldapauthoritative had been removed in 2.4 I pushed this into 16.03 instead of master first. My fault. (cherry picked from commit 516f47efefc44a5465266fe4d72f9136147d2caf) --- .../services/web-servers/apache-httpd/trac.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/web-servers/apache-httpd/trac.nix b/nixos/modules/services/web-servers/apache-httpd/trac.nix index 8fe8b90d823c..c5c11029010e 100644 --- a/nixos/modules/services/web-servers/apache-httpd/trac.nix +++ b/nixos/modules/services/web-servers/apache-httpd/trac.nix @@ -5,14 +5,19 @@ with lib; let # Build a Subversion instance with Apache modules and Swig/Python bindings. - subversion = pkgs.subversion.override (origArgs: { + subversion = pkgs.subversion.override { bdbSupport = true; httpServer = true; pythonBindings = true; - }); + apacheHttpd = httpd; + }; pythonLib = p: "${p}/"; + httpd = serverInfo.serverConfig.package; + + versionPre24 = versionOlder httpd.version "2.4"; + in { @@ -82,7 +87,7 @@ in AuthName "${config.ldapAuthentication.name}" AuthBasicProvider "ldap" AuthLDAPURL "${config.ldapAuthentication.url}" - authzldapauthoritative Off + ${if versionPre24 then "authzldapauthoritative Off" else ""} require valid-user '' else ""}