Skip to content

Commit b74b869

Browse files
committed
Add the missing mod_authnz_ldap parameters
This is the full list from https://httpd.apache.org/docs/2.4/mod/mod_authnz_ldap.html Following the current style of CamelCase -> snake_case
1 parent 6fb9366 commit b74b869

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

templates/vhost/_directories.erb

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,66 @@
305305
<%- if directory['auth_ldap_group_attribute_is_dn'] == 'on' -%>
306306
AuthLDAPGroupAttributeIsDN On
307307
<%- end -%>
308+
<%- if directory['auth_ldap_initial_bind_pattern'] -%>
309+
AuthLDAPInitialBindPattern <%= directory['auth_ldap_initial_bind_pattern'] %>
310+
<%- end -%>
311+
<%- if directory['auth_ldap_bind_as_user'] == 'off' -%>
312+
AuthLDAPInitialBindAsUser Off
313+
<%- end -%>
314+
<%- if directory['auth_ldap_bind_as_user'] == 'on' -%>
315+
AuthLDAPInitialBindAsUser On
316+
<%- end -%>
317+
<%- if directory['auth_ldap_compare_as_user'] == 'off' -%>
318+
AuthLDAPCompareAsUser Off
319+
<%- end -%>
320+
<%- if directory['auth_ldap_compare_as_user'] == 'on' -%>
321+
AuthLDAPCompareAsUser On
322+
<%- end -%>
323+
<%- if directory['auth_ldap_search_as_user'] == 'off' -%>
324+
AuthLDAPSearchAsUser Off
325+
<%- end -%>
326+
<%- if directory['auth_ldap_search_as_user'] == 'on' -%>
327+
AuthLDAPSearchAsUser On
328+
<%- end -%>
329+
<%- if directory['auth_ldap_bind_authoritative'] == 'off' -%>
330+
AuthLDAPBindAuthoritative Off
331+
<%- end -%>
332+
<%- if directory['auth_ldap_bind_authoritative'] == 'on' -%>
333+
AuthLDAPBindAuthoritative On
334+
<%- end -%>
335+
<%- if directory['auth_ldap_authorize_prefix'] -%>
336+
AuthLDAPAuthorizePrefix <%= directory['auth_ldap_authorize_prefix'] %>
337+
<%- end -%>
338+
<%- if directory['auth_ldap_charset_config'] -%>
339+
AuthLDAPCharsetConfig <%= directory['auth_ldap_charset_config'] %>
340+
<%- end -%>
341+
<%- if directory['auth_ldap_compare_dn_on_server'] == 'off' -%>
342+
AuthLDAPCompareDNOnServer Off
343+
<%- end -%>
344+
<%- if directory['auth_ldap_compare_dn_on_server'] == 'on' -%>
345+
AuthLDAPCompareDNOnServer On
346+
<%- end -%>
347+
<%- if directory['auth_ldap_dereference_aliases'] -%>
348+
AuthLDAPDereferenceAliases <%= directory['auth_ldap_dereference_aliases'] %>
349+
<%- end -%>
350+
<%- if directory['auth_ldap_max_sub_group_depth'] -%>
351+
AuthLDAPMaxSubGroupDepth <%= directory['auth_ldap_max_sub_group_depth'] %>
352+
<%- end -%>
353+
<%- if directory['auth_ldap_remote_user_attribute'] -%>
354+
AuthLDAPRemoteUserAttribute <%= directory['auth_ldap_remote_user_attribute'] %>
355+
<%- end -%>
356+
<%- if directory['auth_ldap_remote_user_is_dn'] == 'off' -%>
357+
AuthLDAPRemoteUserIsDN Off
358+
<%- end -%>
359+
<%- if directory['auth_ldap_remote_user_is_dn'] == 'on' -%>
360+
AuthLDAPRemoteUserIsDN On
361+
<%- end -%>
362+
<%- if directory['auth_ldap_sub_group_attribute'] -%>
363+
AuthLDAPSubGroupAttribute <%= directory['auth_ldap_sub_group_attribute'] %>
364+
<%- end -%>
365+
<%- if directory['auth_ldap_sub_group_class'] -%>
366+
AuthLDAPSubGroupClass <%= directory['auth_ldap_sub_group_class'] %>
367+
<%- end -%>
308368
<%- if directory['fallbackresource'] -%>
309369
FallbackResource <%= directory['fallbackresource'] %>
310370
<%- end -%>

0 commit comments

Comments
 (0)