Merge pull request #8 from michalrychlik/master

added base group parameter
This commit is contained in:
Geekix 2018-09-06 13:43:19 +02:00 committed by GitHub
commit 469435cb12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -20,6 +20,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,
$config_options = $nslcd::params::config_options,
$ldap_filters = $nslcd::params::ldap_filters,

View File

@ -13,7 +13,8 @@ class nslcd::params {
$ldap_version = '3'
$ldap_binddn = undef
$ldap_bindpw = undef
$ldap_search_base = ''
$ldap_search_base = undef
$ldap_group_base = undef
$ldap_search_scope = 'subtree'
$config_options = {}
$ldap_filters = {}

View File

@ -14,6 +14,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.