Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
su_ldap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
suitpuppet
su_ldap
Commits
84bfea33
Commit
84bfea33
authored
6 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
install ldap/ keytab
parent
91d660f7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/init.pp
+8
-4
8 additions, 4 deletions
manifests/init.pp
manifests/traditional.pp
+14
-1
14 additions, 1 deletion
manifests/traditional.pp
with
22 additions
and
5 deletions
manifests/init.pp
+
8
−
4
View file @
84bfea33
...
...
@@ -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
,
}
}
}
This diff is collapsed.
Click to expand it.
manifests/traditional.pp
+
14
−
1
View file @
84bfea33
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment