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
f5ba342b
Commit
f5ba342b
authored
6 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
remove duplicate resource
parent
d03bbdcd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/authentication.pp
+14
-20
14 additions, 20 deletions
manifests/authentication.pp
with
14 additions
and
20 deletions
manifests/authentication.pp
+
14
−
20
View file @
f5ba342b
...
...
@@ -15,22 +15,17 @@ class su_ldap::authentication (
crit
(
"at least one of auth_gssapi and/or auth_simple must be enabled"
)
}
# Configure SASL for slapd.
file
{
'/etc/ldap/sasl2/slapd.conf'
:
content
=>
template
(
'su_ldap/etc/ldap/sasl2/slapd.conf.erb'
),
owner
=>
root
,
group
=>
root
,
mode
=>
'0644'
,
}
# saslauthd package
package
{
'sasl2-bin'
:
ensure
=>
installed
}
# TODO: commit files and fix path names
# note: the file slapd.conf-saslauthd permits both sasl and gssapi auth
file
{
'/etc/default/saslauthd'
:
ensure
=>
present
,
source
=>
'puppet:///modules/s_ldap/etc/default/saslauthd'
,
require
=>
Package
[
'sasl2-bin'
];
'/etc/ldap/sasl2/slapd.conf'
:
ensure
=>
present
,
source
=>
'puppet:///modules/s_ldap/etc/ldap/sasl2/slapd.conf-saslauthd'
,
require
=>
Package
[
'slapd'
];
}
# Make sure the saslauthd service, the service that allows "simple"
# binds to work, is running.
# TODO: see if we can specify this at run time, especially for containers
...
...
@@ -41,16 +36,15 @@ class su_ldap::authentication (
hasstatus
=>
false
,
status
=>
'test -f /etc/nosaslauthd || pidof saslauthd'
,
}
}
# Configure SASL for slapd.
file
{
'/etc/ldap/sasl2/slapd.conf'
:
content
=>
template
(
'su_ldap/etc/ldap/sasl2/slapd.conf.erb'
),
owner
=>
root
,
group
=>
root
,
mode
=>
'0644'
,
file
{
'/etc/default/saslauthd'
:
ensure
=>
present
,
source
=>
'puppet:///modules/s_ldap/etc/default/saslauthd'
,
require
=>
Package
[
'sasl2-bin'
];
}
}
## Do the iptables dance elsewhere, because it's different depending on what
## type of server or location is used, and this module is generic for building
## the auth part
...
...
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