From d61714dd0de1acd75ffe3dab7dc109a73926a49a Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sun, 5 Nov 2017 18:52:09 -0500 Subject: [mod_authn_sasl] SASL auth (new) (fixes #2275) (experimental) HTTP Basic authentication using saslauthd server.modules += ( "mod_auth" ) server.modules += ( "mod_authn_sasl" ) auth.backend = "sasl" auth.backend.sasl.opts = ( "pwcheck_method" => "saslauthd" ) # default x-ref: "SASL auth like libapache2-mod-authn-sasl" https://redmine.lighttpd.net/issues/2275 --- SConstruct | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 693fb008..6aa1cafe 100644 --- a/SConstruct +++ b/SConstruct @@ -247,6 +247,7 @@ vars.AddVariables( BoolVariable('with_openssl', 'enable openssl support', 'no'), PackageVariable('with_pcre', 'enable pcre support', 'yes'), PackageVariable('with_pgsql', 'enable pgsql support', 'no'), + PackageVariable('with_sasl', 'enable SASL support', 'no'), BoolVariable('with_sqlite3', 'enable sqlite3 support (required for webdav props)', 'no'), BoolVariable('with_uuid', 'enable uuid support (required for webdav locks)', 'no'), # with_valgrind not supported @@ -325,6 +326,7 @@ if 1: LIBMYSQL = '', LIBPCRE = '', LIBPGSQL = '', + LIBSASL = '', LIBSQLITE3 = '', LIBSSL = '', LIBUUID = '', @@ -583,6 +585,14 @@ if 1: fail("Couldn't find libpq") autoconf.env.Append(CPPFLAGS = [ '-DHAVE_PGSQL_H', '-DHAVE_LIBPGSQL' ]) + if env['with_sasl']: + if not autoconf.CheckLibWithHeader('sasl2', 'sasl/sasl.h', 'C'): + fail("Couldn't find libsasl2") + autoconf.env.Append( + CPPFLAGS = [ '-DHAVE_SASL' ], + LIBSASL = 'sasl2', + ) + if env['with_sqlite3']: if not autoconf.CheckLibWithHeader('sqlite3', 'sqlite3.h', 'C'): fail("Couldn't find sqlite3") -- cgit v1.2.1