Add other options
This commit is contained in:
parent
e45997b7ce
commit
3dbff6a66d
@ -19,6 +19,7 @@ class nslcd (
|
||||
$ldap_bindpw = $nslcd::params::ldap_bindpw,
|
||||
$ldap_search_base = $nslcd::params::ldap_search_base,
|
||||
$ldap_search_scope = $nslcd::params::ldap_search_scope,
|
||||
$config_options = $nslcd::params::config_options,
|
||||
$ldap_filters = $nslcd::params::ldap_filters,
|
||||
$ldap_maps = $nslcd::params::ldap_maps,
|
||||
$ldap_ssl = $nslcd::params::ldap_ssl,
|
||||
|
@ -13,6 +13,7 @@ class nslcd::params {
|
||||
$ldap_bindpw = undef
|
||||
$ldap_search_base = ''
|
||||
$ldap_search_scope = 'subtree'
|
||||
$config_options = {}
|
||||
$ldap_filters = {}
|
||||
$ldap_maps = {}
|
||||
$ldap_ssl = 'off'
|
||||
|
@ -32,6 +32,14 @@ tls_cacertfile <%= @ldap_tls_cacertfile %>
|
||||
# The search scope.
|
||||
scope <%= @ldap_search_scope %>
|
||||
|
||||
<% @config_options.sort.each do |k,v| -%>
|
||||
<% Array(v).each do |av| -%>
|
||||
<% if ![nil, '', :undef].include?(av) -%>
|
||||
<%= %Q(#{k} #{av}) %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
<% if @ldap_filters.length > 0 -%>
|
||||
# Custom search filters
|
||||
<% @ldap_filters.each do |map, filter| -%>
|
||||
|
Loading…
Reference in New Issue
Block a user