Skip to content
Snippets Groups Projects
Commit 84bfea33 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

install ldap/ keytab

parent 91d660f7
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ class su_ldap (
$debian_distribution = 'stretch',
$debian_archive = 'debian-stanford',
$debian_repository = undef,
#
$keytab_path = '/etc/krb5.keytab',
){
## ERROR CHECKING ##
......@@ -61,6 +63,7 @@ class su_ldap (
## Basic configuration: /etc/ldap/ldap.conf, /etc/default/slapd, et al.
class { 'su_ldap::config':
hosting_model => $hosting_model,
keytab_path => $keytab_path,
}
## Install sync scripts (call from parent class instead)
......@@ -76,9 +79,10 @@ class su_ldap (
auth_simple => $auth_simple,
}
# if ($hosting_model == 'traditional') {
# class { 'su_ldap::traditional':
# }
# }
if ($hosting_model == 'traditional') {
class { 'su_ldap::traditional':
keytab_path => $keytab_path,
}
}
}
class su_ldap::traditional {
class su_ldap::traditional (
$keytab_path = '/etc/krb5.keytab',
) {
## Firewall rules
## Keytabs
# Make sure the keytab for the ldap/hostname service principal is installed.
# It is not meant to be primary.
#
# Note that we require that Base::Wallet["host/${::fqdn}"] already be
# installed.
base::wallet { "ldap/${::fqdn}":
ensure => present,
path => $keytab_path,
primary => false,
require => Base::Wallet["host/${::fqdn}"],
}
## Ensure slapd service running
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment