Skip to content

Commit

Permalink
add attributes ldap_group_attribute and ldap_group_attribute_is_dn
Browse files Browse the repository at this point in the history
  • Loading branch information
jstange committed Nov 16, 2015
1 parent 5daf9c3 commit db5bb6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions attributes/default.rb
Expand Up @@ -165,6 +165,8 @@
default['nagios']['ldap_bind_password'] = nil
default['nagios']['ldap_url'] = nil
default['nagios']['ldap_authoritative'] = nil
default['nagios']['ldap_group_attribute'] = nil
default['nagios']['ldap_group_attribute_is_dn'] = nil

default['nagios']['templates'] = Mash.new

Expand Down
2 changes: 2 additions & 0 deletions templates/default/apache2.conf.erb
Expand Up @@ -64,6 +64,8 @@
AuthName "Nagios Server"
AuthType Basic
AuthBasicProvider ldap
<% unless node['nagios']['ldap_group_attribute_is_dn'] or node['nagios']['ldap_group_attribute_is_dn'].nil? -%>AuthLDAPGroupAttributeIsDN Off <% end -%>
<% unless node['nagios']['ldap_group_attribute'].nil? -%>AuthLDAPGroupAttribute "<%= node['nagios']['ldap_group_attribute'] %>" <% end -%>
<% unless node['nagios']['ldap_bind_dn'].nil? -%>AuthLDAPBindDN "<%= node['nagios']['ldap_bind_dn'] %>" <% end -%>
<% unless node['nagios']['ldap_bind_password'].nil? -%>AuthLDAPBindPassword "<%= node['nagios']['ldap_bind_password'] %>"<% end -%>
AuthLDAPURL "<%= node['nagios']['ldap_url'] %>"
Expand Down

0 comments on commit db5bb6e

Please sign in to comment.