Skip to content

Commit 943dc9f

Browse files
authored
Merge pull request #2215 from tuxmea/allow_gssapi_krb5_config
Allow additional settings for GSSAPI in Vhost
2 parents 3839c93 + 75f6854 commit 943dc9f

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

manifests/vhost.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,8 @@
14771477
# gssapi => {
14781478
# acceptor_name => '{HOSTNAME}',
14791479
# allowed_mech => ['krb5', 'iakerb', 'ntlmssp'],
1480+
# authname => 'Kerberos 5',
1481+
# authtype => 'GSSAPI',
14801482
# basic_auth => true,
14811483
# basic_auth_mech => ['krb5', 'iakerb', 'ntlmssp'],
14821484
# basic_ticket_timeout => 300,

spec/defines/vhost_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@
273273
'gssapi' => {
274274
'acceptor_name' => '{HOSTNAME}',
275275
'allowed_mech' => ['krb5', 'iakerb', 'ntlmssp'],
276+
'authname' => 'Kerberos 5',
277+
'authtype' => 'GSSAPI',
276278
'basic_auth' => true,
277279
'basic_auth_mech' => ['krb5', 'iakerb', 'ntlmssp'],
278280
'basic_ticket_timeout' => 300,

templates/vhost/_gssapi.epp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
Optional[Boolean] $basic_auth = undef,
66
Optional[Array[Enum['krb5','iakerb','ntlmssp']]] $basic_auth_mech = undef,
77
Optional[[Integer[1]]] $basic_ticket_timeout = undef,
8+
Optional[String[1]] $authname = undef,
9+
Optional[String[1]] $authtype = undef,
810
Optional[Boolean] $connection_bound = undef,
911
Optional[Struct[{
1012
Optional['ccache'] => Array[Stdlib::Unixpath],
@@ -42,6 +44,12 @@
4244
GssapiAllowedMech <%= $mech %>
4345
<%- } -%>
4446
<%- } -%>
47+
<%- if $authname { -%>
48+
AuthName "<%= $authname %>"
49+
<%- } -%>
50+
<%- if $authtype { -%>
51+
AuthType <%= $authtype %>
52+
<%- } -%>
4553
<%- if $basic_auth { -%>
4654
GssapiBasicAuth On
4755
<%- } -%>

0 commit comments

Comments
 (0)