Improve documentation a bit and rename saslauthd.conf.erb to saslauthd.conf.ldap.erb since ldap is the only auth method with such config file (so far).
This commit is contained in:
parent
54e5712716
commit
895eb0e6a1
2 changed files with 5 additions and 4 deletions
|
@ -20,7 +20,10 @@ class sasl::client {
|
||||||
# === Global variables
|
# === Global variables
|
||||||
#
|
#
|
||||||
# $saslauthd_mech:
|
# $saslauthd_mech:
|
||||||
# Authentication mechanism to use. Defaults to system default.
|
# Authentication mechanism to use. Defaults to system
|
||||||
|
# default. Supported mechanisms include pam, ldap and kerberos5.
|
||||||
|
#
|
||||||
|
# For ldap authentication, see ldap::client for required global variables.
|
||||||
#
|
#
|
||||||
class sasl::saslauthd {
|
class sasl::saslauthd {
|
||||||
|
|
||||||
|
@ -42,7 +45,7 @@ class sasl::saslauthd {
|
||||||
mode => 0644,
|
mode => 0644,
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => "root",
|
group => "root",
|
||||||
content => template("sasl/saslauthd.conf.erb"),
|
content => template("sasl/saslauthd.conf.ldap.erb"),
|
||||||
notify => Service["saslauthd"],
|
notify => Service["saslauthd"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
<% if has_variable=('saslauthd_mech') && saslauthd_mech == "ldap" -%>
|
|
||||||
ldap_servers: <% ldap_server.each do |uri| %><%= uri %> <% end %>
|
ldap_servers: <% ldap_server.each do |uri| %><%= uri %> <% end %>
|
||||||
ldap_search_base: <%= ldap_basedn %>
|
ldap_search_base: <%= ldap_basedn %>
|
||||||
<% end -%>
|
|
Loading…
Add table
Reference in a new issue