Add LDAP authentication support for saslauthd.

This commit is contained in:
Ossi Herrala 2012-10-03 09:30:13 +00:00
parent 89d38844d3
commit 54e5712716
2 changed files with 22 additions and 0 deletions

View file

@ -28,6 +28,24 @@ class sasl::saslauthd {
case $saslauthd_mech {
"","pam": { }
"ldap": {
include ldap::client
augeas { "set-saslauthd-mech":
context => "/files/etc/sysconfig/saslauthd",
changes => "set MECH ldap",
notify => Service["saslauthd"],
}
file { "/etc/saslauthd.conf":
ensure => present,
mode => 0644,
owner => "root",
group => "root",
content => template("sasl/saslauthd.conf.erb"),
notify => Service["saslauthd"],
}
}
"kerberos5": {
augeas { "set-saslauthd-mech":
context => "/files/etc/sysconfig/saslauthd",