File tree Expand file tree Collapse file tree 2 files changed +46
-6
lines changed Expand file tree Collapse file tree 2 files changed +46
-6
lines changed Original file line number Diff line number Diff line change 252
252
'passenger_app_log_file' => '/tmp/app.log' ,
253
253
'passenger_debugger' => false ,
254
254
'gssapi' => {
255
- 'credstore' => 'keytab:/foo/bar.keytab' ,
256
- 'localname' => 'On' ,
257
- 'sslonly' => 'Off' ,
255
+ 'credstore' => 'keytab:/foo/bar.keytab' ,
256
+ 'localname' => 'On' ,
257
+ 'sslonly' => 'Off' ,
258
+ 'allowedmech' => 'krb5' ,
259
+ 'authname' => 'Kerberos 5' ,
260
+ 'authtype' => 'GSSAPI' ,
261
+ 'basicauth' => 'On' ,
258
262
} ,
259
263
} ,
260
264
{
958
962
content : %r{^\s +GssapiLocalName\s On$} ,
959
963
)
960
964
}
965
+ it {
966
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-directories' ) . with (
967
+ content : %r{^\s +GssapiAllowedMech\s krb5$} ,
968
+ )
969
+ }
970
+ it {
971
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-directories' ) . with (
972
+ content : %r{^\s +AuthName\s "Kerberos 5"$} ,
973
+ )
974
+ }
975
+ it {
976
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-directories' ) . with (
977
+ content : %r{^\s +AuthType\s GSSAPI$} ,
978
+ )
979
+ }
980
+ it {
981
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-directories' ) . with (
982
+ content : %r{^\s +GssapiBasicAuth\s On$} ,
983
+ )
984
+ }
961
985
it {
962
986
is_expected . to contain_concat__fragment ( 'rspec.example.com-directories' ) . with (
963
987
content : %r{^\s +SSLVerifyClient\s optional$} ,
Original file line number Diff line number Diff line change 1
1
<%|
2
2
# https://github.com/gssapi/mod_auth_gssapi
3
- Optional[String[1]] $credstore = undef,
4
- Optional[Enum['On','Off']] $sslonly = undef,
5
- Optional[Enum['On','Off']] $localname = undef,
3
+ Optional[String[1]] $allowedmech = undef,
4
+ Optional[String[1]] $authname = undef,
5
+ Optional[String[1]] $authtype = undef,
6
+ Optional[Enum['On','Off']] $basicauth = undef,
7
+ Optional[String[1]] $credstore = undef,
8
+ Optional[Enum['On','Off']] $sslonly = undef,
9
+ Optional[Enum['On','Off']] $localname = undef,
6
10
|%>
7
11
# mod_auth_gssapi configuration
12
+ <% if $allowedmech { -%>
13
+ GssapiAllowedMech <%= $allowedmech %>
14
+ <% } -%>
15
+ <% if $authname { -%>
16
+ AuthName "<%= $authname %>"
17
+ <% } -%>
18
+ <% if $authtype { -%>
19
+ AuthType <%= $authtype %>
20
+ <% } -%>
21
+ <% if $basicauth { -%>
22
+ GssapiBasicAuth <%= $basicauth %>
23
+ <% } -%>
8
24
<% if $sslonly { -%>
9
25
GssapiSSLonly <%= $sslonly %>
10
26
<% } -%>
You can’t perform that action at this time.
0 commit comments