Skip to content

Commit b5656ef

Browse files
authored
Merge pull request #2212 from unibonn/gssapi-basic-auth
mod_auth_gssapi: Add support for `GssapiBasicAuth`.
2 parents 488a1f5 + c8a2f24 commit b5656ef

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

manifests/vhost.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,7 @@
15131513
# directories => [
15141514
# { path => '/path/to/different/dir',
15151515
# gssapi => {
1516+
# basicauth => 'On',
15161517
# credstore => 'keytab:/foo/bar.keytab',
15171518
# localname => 'Off',
15181519
# sslonly => 'On',

spec/defines/vhost_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@
253253
'passenger_app_log_file' => '/tmp/app.log',
254254
'passenger_debugger' => false,
255255
'gssapi' => {
256+
'basicauth' => 'On',
256257
'credstore' => 'keytab:/foo/bar.keytab',
257258
'localname' => 'On',
258259
'sslonly' => 'Off',
@@ -950,6 +951,11 @@
950951
content: %r{^\s+PassengerDebugger\sOff$},
951952
)
952953
}
954+
it {
955+
is_expected.to contain_concat__fragment('rspec.example.com-directories').with(
956+
content: %r{^\s+GssapiBasicAuth\sOn$},
957+
)
958+
}
953959
it {
954960
is_expected.to contain_concat__fragment('rspec.example.com-directories').with(
955961
content: %r{^\s+GssapiCredStore\skeytab:/foo/bar.keytab$},

templates/vhost/_gssapi.epp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<%|
22
# https://github.com/gssapi/mod_auth_gssapi
3+
Optional[Enum['On','Off']] $basicauth = undef,
34
Optional[String[1]] $credstore = undef,
45
Optional[Enum['On','Off']] $sslonly = undef,
56
Optional[Enum['On','Off']] $localname = undef,
67
|%>
7-
# mod_auth_gssapi configuration
8+
# mod_auth_gssapi configuration
9+
<% if $basicauth { -%>
10+
GssapiBasicAuth <%= $basicauth %>
11+
<% } -%>
812
<% if $sslonly { -%>
913
GssapiSSLonly <%= $sslonly %>
1014
<% } -%>

0 commit comments

Comments
 (0)