add ldap_maps hash
This commit is contained in:
parent
0e816bbe3e
commit
02c47cb1c7
@ -20,6 +20,7 @@ class nslcd (
|
|||||||
$ldap_search_base = $nslcd::params::ldap_search_base,
|
$ldap_search_base = $nslcd::params::ldap_search_base,
|
||||||
$ldap_search_scope = $nslcd::params::ldap_search_scope,
|
$ldap_search_scope = $nslcd::params::ldap_search_scope,
|
||||||
$ldap_filters = $nslcd::params::ldap_filters,
|
$ldap_filters = $nslcd::params::ldap_filters,
|
||||||
|
$ldap_maps = $nslcd::params::ldap_maps,
|
||||||
$ldap_ssl = $nslcd::params::ldap_ssl,
|
$ldap_ssl = $nslcd::params::ldap_ssl,
|
||||||
$ldap_tls_reqcert = $nslcd::params::ldap_tls_reqcert,
|
$ldap_tls_reqcert = $nslcd::params::ldap_tls_reqcert,
|
||||||
$ldap_tls_cacertfile = $nslcd::params::ldap_tls_cacertfile,
|
$ldap_tls_cacertfile = $nslcd::params::ldap_tls_cacertfile,
|
||||||
|
@ -14,6 +14,7 @@ class nslcd::params {
|
|||||||
$ldap_search_base = ''
|
$ldap_search_base = ''
|
||||||
$ldap_search_scope = 'subtree'
|
$ldap_search_scope = 'subtree'
|
||||||
$ldap_filters = {}
|
$ldap_filters = {}
|
||||||
|
$ldap_maps = {}
|
||||||
$ldap_ssl = 'off'
|
$ldap_ssl = 'off'
|
||||||
$ldap_tls_reqcert = 'allow'
|
$ldap_tls_reqcert = 'allow'
|
||||||
$ldap_tls_cacertfile = undef
|
$ldap_tls_cacertfile = undef
|
||||||
|
@ -38,3 +38,12 @@ scope <%= @ldap_search_scope %>
|
|||||||
filter <%= map %> <%= filter %>
|
filter <%= map %> <%= filter %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
<% if @ldap_maps.length > 0 -%>
|
||||||
|
# Custom attribute mapping
|
||||||
|
<% @ldap_maps.each do |map, a| -%>
|
||||||
|
<% a.each do |attribute, newattribute| -%>
|
||||||
|
map <%= map %> <%= attribute %> <%= newattribute %>
|
||||||
|
<% end -%>
|
||||||
|
<% end -%>
|
||||||
|
<% end -%>
|
||||||
|
Loading…
Reference in New Issue
Block a user