Added kerberos5 support to saslauthd::server.
This commit is contained in:
parent
105978c2d5
commit
4315d2ba19
1 changed files with 24 additions and 0 deletions
|
@ -1,11 +1,35 @@
|
||||||
# Install saslauthd daemon.
|
# Install saslauthd daemon.
|
||||||
#
|
#
|
||||||
|
# === Global variables
|
||||||
|
#
|
||||||
|
# $saslauthd_mech:
|
||||||
|
# Authentication mechanism to use. Defaults to system default.
|
||||||
|
#
|
||||||
class saslauthd::server {
|
class saslauthd::server {
|
||||||
|
|
||||||
package { "cyrus-sasl":
|
package { "cyrus-sasl":
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case $saslauthd_mech {
|
||||||
|
"","pam": { }
|
||||||
|
"kerberos5": {
|
||||||
|
package { "cyrus-sasl-gssapi":
|
||||||
|
ensure => installed,
|
||||||
|
before => Service["saslauthd"],
|
||||||
|
}
|
||||||
|
augeas { "set-saslauthd-mech":
|
||||||
|
context => "/files/etc/sysconfig/saslauthd",
|
||||||
|
changes => "set MECH kerberos5",
|
||||||
|
require => Package["cyrus-sasl"],
|
||||||
|
notify => Service["saslauthd"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
fail("Unknown mechanism ${saslauthd_mech} for saslauthd::server")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
service { "saslauthd":
|
service { "saslauthd":
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue