Skip to content

Commit 5f0787f

Browse files
committed
Allow additional settings for GSSAPI in Vhost
Adding config items: - allowedmech - authname - authtype - basicauth
1 parent 3839c93 commit 5f0787f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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)