Merge pull request #8 from michalrychlik/master
added base group parameter
This commit is contained in:
commit
469435cb12
@ -20,6 +20,7 @@ class nslcd (
|
|||||||
$ldap_binddn = $nslcd::params::ldap_binddn,
|
$ldap_binddn = $nslcd::params::ldap_binddn,
|
||||||
$ldap_bindpw = $nslcd::params::ldap_bindpw,
|
$ldap_bindpw = $nslcd::params::ldap_bindpw,
|
||||||
$ldap_search_base = $nslcd::params::ldap_search_base,
|
$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_search_scope = $nslcd::params::ldap_search_scope,
|
||||||
$config_options = $nslcd::params::config_options,
|
$config_options = $nslcd::params::config_options,
|
||||||
$ldap_filters = $nslcd::params::ldap_filters,
|
$ldap_filters = $nslcd::params::ldap_filters,
|
||||||
|
@ -13,7 +13,8 @@ class nslcd::params {
|
|||||||
$ldap_version = '3'
|
$ldap_version = '3'
|
||||||
$ldap_binddn = undef
|
$ldap_binddn = undef
|
||||||
$ldap_bindpw = undef
|
$ldap_bindpw = undef
|
||||||
$ldap_search_base = ''
|
$ldap_search_base = undef
|
||||||
|
$ldap_group_base = undef
|
||||||
$ldap_search_scope = 'subtree'
|
$ldap_search_scope = 'subtree'
|
||||||
$config_options = {}
|
$config_options = {}
|
||||||
$ldap_filters = {}
|
$ldap_filters = {}
|
||||||
|
@ -14,6 +14,10 @@ ldap_version <%= @ldap_version %>
|
|||||||
|
|
||||||
# The search base that will be used for all queries.
|
# The search base that will be used for all queries.
|
||||||
base <%= @ldap_search_base %>
|
base <%= @ldap_search_base %>
|
||||||
|
<% if @ldap_group_base -%>
|
||||||
|
base group <%= @ldap_group_base -%>
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
|
|
||||||
<% if @ldap_binddn and @ldap_bindpw -%>
|
<% if @ldap_binddn and @ldap_bindpw -%>
|
||||||
# The DN to bind with for normal lookups.
|
# The DN to bind with for normal lookups.
|
||||||
|
Loading…
Reference in New Issue
Block a user