forked from camptocamp/puppet-apache_c2c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth-basic-ldap.erb
41 lines (40 loc) · 1.33 KB
/
auth-basic-ldap.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# file managed by puppet
<Location <%= @location %>>
AuthName "<%= @_authname %>"
AuthType Basic
AuthBasicProvider ldap
<% if @auth_ldap_bind_dn -%>
AuthLDAPBindDN <%= @auth_ldap_bind_dn %>
<% end -%>
<% if @auth_ldap_bind_password -%>
AuthLDAPBindPassword <%= @auth_ldap_bind_password %>
<% end -%>
<% if @auth_ldap_charset_config -%>
AuthLDAPCharsetConfig <%= @auth_ldap_charset_config %>
<% end -%>
<% if @auth_ldap_compare_dn_on_server -%>
AuthLDAPCompareDNOnServer <%= @auth_ldap_compare_dn_on_server %>
<% end -%>
<% if @auth_ldap_dereference_aliases -%>
AuthLDAPDereferenceAliases <%= @auth_ldap_dereference_aliases %>
<% end -%>
<% if @auth_ldap_group_attribute -%>
AuthLDAPGroupAttribute <%= @auth_ldap_group_attribute %>
<% end -%>
<% if @auth_ldap_group_attribute_is_dn -%>
AuthLDAPGroupAttributeIsDN <%= @auth_ldap_group_attribute_is_dn %>
<% end -%>
<% if @auth_ldap_remote_user_attribute -%>
AuthLDAPRemoteUserAttribute <%= @auth_ldap_remote_user_attribute %>
<% end -%>
<% if @auth_ldap_remote_user_is_dn -%>
AuthLDAPRemoteUserIsDN <%= @auth_ldap_remote_user_is_dn %>
<% end -%>
<% if @auth_ldap_authoritative -%>
AuthzLDAPAuthoritative <%= @auth_ldap_authoritative %>
<% end -%>
AuthLDAPUrl "<%= @auth_ldap_url %>"
<% [@authz_require].flatten.compact.each do |require| -%>
Require <%= require %>
<% end -%>
</Location>