Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions manifests/application.pp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
$auxprop_package = $::sasl::auxprop_packages[$auxprop_plugin]
ensure_packages([$auxprop_package])
Package[$auxprop_package] -> File[$service_file]
if $auxprop_plugin == 'sasldb' {
ensure_packages([$::sasl::sasldb_package])
}
}
'saslauthd': {
# Require saslauthd if that's the method
Expand Down
3 changes: 3 additions & 0 deletions manifests/authd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
String $service_name = $::sasl::params::saslauthd_service,
Stdlib::Absolutepath $socket = $::sasl::params::saslauthd_socket,
Boolean $hasstatus = $::sasl::params::saslauthd_hasstatus,
Boolean $credcache = $::sasl::params::saslauthd_credcache,
Optional[Integer[0]] $credcache_timeout = undef,
Optional[Integer[0]] $credcache_size = undef,
# ldap
Optional[Stdlib::Absolutepath] $ldap_conf_file = $::sasl::params::saslauthd_ldap_conf_file,
Optional[Enum['bind', 'custom', 'fastbind']] $ldap_auth_method = undef,
Expand Down
15 changes: 15 additions & 0 deletions manifests/authd/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
$socket = $::sasl::authd::socket
$mechanism = $::sasl::authd::mechanism
$threads = $::sasl::authd::threads
$credcache = $::sasl::authd::credcache
$credcache_timeout = $::sasl::authd::credcache_timeout
$credcache_size = $::sasl::authd::credcache_size
$ldap_conf_file = $::sasl::authd::ldap_conf_file
$ldap_auth_method = $::sasl::authd::ldap_auth_method
$ldap_bind_dn = $::sasl::authd::ldap_bind_dn
Expand Down Expand Up @@ -54,6 +57,18 @@
default => '',
}

if $credcache {
$credcache_opt = '-c'
}

if $credcache_timeout {
$credcache_timeout_opt = "-t ${credcache_timeout}"
}

if $credcache_size {
$credcache_size_opt = "-s ${credcache_size}"
}

case $facts['os']['family'] {
'RedHat': {
if size($_mech_options) > 0 {
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$saslauthd_service = 'saslauthd'
$saslauthd_ldap_conf_file = '/etc/saslauthd.conf'
$saslauthd_threads = 5
$saslauthd_credcache = true

case $facts['os']['family'] {
'RedHat': {
Expand Down
2 changes: 1 addition & 1 deletion templates/default.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ NAME="saslauthd"
MECHANISMS="<%= @mechanism %>"
MECH_OPTIONS="<%= @mech_options %>"
THREADS=<%= @threads %>
OPTIONS="-c -m <%= @socket %>"
OPTIONS="<%= @credcache_opt %> <%= @credcache_timeout_opt %> <%= @credcache_size_opt %> -m <%= @socket %>"
2 changes: 1 addition & 1 deletion templates/sysconfig.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

SOCKETDIR="<%= @socket %>"
MECH="<%= @mechanism %>"
FLAGS="<%= @flags %>"
FLAGS="<%= @flags %> <%= @credcache_opt %> <%= @credcache_timeout_opt %> <%= @credcache_size_opt %>"