diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-11-05 18:52:09 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-11-05 20:11:07 -0500 |
commit | d61714dd0de1acd75ffe3dab7dc109a73926a49a (patch) | |
tree | 47ba9f94faaaf1c099daa9c2eaf6ef23017c5351 /SConstruct | |
parent | fdc4c324c4df38e04c858a2f8c2081c872c50ba5 (diff) | |
download | lighttpd-git-d61714dd0de1acd75ffe3dab7dc109a73926a49a.tar.gz |
[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
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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") |