added base group parameter

This commit is contained in:
root 2016-05-09 16:40:35 +02:00
parent 0e816bbe3e
commit 4366d416bc
3 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class nslcd (
$ldap_binddn = $nslcd::params::ldap_binddn,
$ldap_bindpw = $nslcd::params::ldap_bindpw,
$ldap_search_base = $nslcd::params::ldap_search_base,
$ldap_group_base = $nslcd::params::ldap_group_base,
$ldap_search_scope = $nslcd::params::ldap_search_scope,
$ldap_filters = $nslcd::params::ldap_filters,
$ldap_ssl = $nslcd::params::ldap_ssl,

View File

@ -12,6 +12,7 @@ class nslcd::params {
$ldap_binddn = undef
$ldap_bindpw = undef
$ldap_search_base = ''
$ldap_group_base = ''
$ldap_search_scope = 'subtree'
$ldap_filters = {}
$ldap_ssl = 'off'

View File

@ -15,6 +15,10 @@ ldap_version <%= @ldap_version %>
# The search base that will be used for all queries.
base <%= @ldap_search_base %>
<% if @ldap_group_base -%>
base group <%= @ldap_group_base -%>
<% end -%>
<% if @ldap_binddn and @ldap_bindpw -%>
# The DN to bind with for normal lookups.