]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
FreeBSD: Use variables for the Kerberos options
authorGabriel Filion <lelutin@gmail.com>
Mon, 21 Feb 2011 20:18:14 +0000 (15:18 -0500)
committerGabriel Filion <lelutin@gmail.com>
Mon, 21 Feb 2011 20:18:14 +0000 (15:18 -0500)
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
templates/sshd_config/FreeBSD.erb

index 1d3de072d8a6fedf2c0c59c9539626cd4045d079..4e4329a1665dc602c561f0551dd377ac2aa47da1 100644 (file)
@@ -130,14 +130,33 @@ ChallengeResponseAuthentication no
 <%- end -%>
 
 # Kerberos options
-#KerberosAuthentication no
-#KerberosOrLocalPasswd yes
-#KerberosTicketCleanup yes
-#KerberosGetAFSToken no
+<%- if sshd_kerberos_authentication.to_s == 'yes' then -%>
+KerberosAuthentication yes
+<%- else -%>
+KerberosAuthentication no
+<%- end -%>
+<%- if sshd_kerberos_orlocalpasswd.to_s == 'yes' then -%>
+KerberosOrLocalPasswd yes
+<%- else -%>
+KerberosOrLocalPasswd no
+<%- end -%>
+<%- if sshd_kerberos_ticketcleanup.to_s == 'yes' then -%>
+KerberosTicketCleanup yes
+<%- else -%>
+KerberosTicketCleanup no
+<%- end -%>
 
 # GSSAPI options
-#GSSAPIAuthentication no
-#GSSAPICleanupCredentials yes
+<%- if sshd_gssapi_authentication.to_s == 'yes' then -%>
+GSSAPIAuthentication yes
+<%- else -%>
+GSSAPIAuthentication no
+<%- end -%>
+<%- if sshd_gssapi_authentication.to_s == 'yes' then -%>
+GSSAPICleanupCredentials yes
+<%- else -%>
+GSSAPICleanupCredentials yes
+<%- end -%>
 
 # Set this to 'no' to disable PAM authentication, account processing,
 # and session processing. If this is enabled, PAM authentication will