sasl: Fix kerberos mech for saslauthd on CentOS/RedHat 7.
This commit is contained in:
parent
6db1ca7175
commit
c2df754fa6
1 changed files with 8 additions and 2 deletions
|
@ -94,10 +94,16 @@ class sasl::saslauthd {
|
||||||
augeas { "set-saslauthd-mech":
|
augeas { "set-saslauthd-mech":
|
||||||
context => "/files/etc/sysconfig/saslauthd",
|
context => "/files/etc/sysconfig/saslauthd",
|
||||||
changes => [ "set MECH kerberos5",
|
changes => [ "set MECH kerberos5",
|
||||||
"set KRB5_KTNAME '\"/etc/saslauthd.keytab\"'",
|
"set KRB5_KTNAME '\"/etc/saslauthd.keytab\"'", ],
|
||||||
"set @export KRB5_KTNAME", ],
|
|
||||||
notify => Service["saslauthd"],
|
notify => Service["saslauthd"],
|
||||||
}
|
}
|
||||||
|
if versioncmp($::operatingsystemrelease, 7) < 0 {
|
||||||
|
augeas { "export-saslauthd-keytab":
|
||||||
|
context => "/files/etc/sysconfig/saslauthd",
|
||||||
|
changes => "set @export KRB5_KTNAME",
|
||||||
|
notify => Service["saslauthd"],
|
||||||
|
}
|
||||||
|
}
|
||||||
$user = "saslauth"
|
$user = "saslauth"
|
||||||
}
|
}
|
||||||
"openbsd": {
|
"openbsd": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue