Skip to content

Commit d84418e

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 92c47e1 commit d84418e

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
@@ -315,6 +315,66 @@
315315
<%- if directory['auth_ldap_group_attribute_is_dn'] == 'on' -%>
316316
AuthLDAPGroupAttributeIsDN On
317317
<%- end -%>
318+
<%- if directory['auth_ldap_initial_bind_pattern'] -%>
319+
AuthLDAPInitialBindPattern <%= directory['auth_ldap_initial_bind_pattern'] %>
320+
<%- end -%>
321+
<%- if directory['auth_ldap_bind_as_user'] == 'off' -%>
322+
AuthLDAPInitialBindAsUser Off
323+
<%- end -%>
324+
<%- if directory['auth_ldap_bind_as_user'] == 'on' -%>
325+
AuthLDAPInitialBindAsUser On
326+
<%- end -%>
327+
<%- if directory['auth_ldap_compare_as_user'] == 'off' -%>
328+
AuthLDAPCompareAsUser Off
329+
<%- end -%>
330+
<%- if directory['auth_ldap_compare_as_user'] == 'on' -%>
331+
AuthLDAPCompareAsUser On
332+
<%- end -%>
333+
<%- if directory['auth_ldap_search_as_user'] == 'off' -%>
334+
AuthLDAPSearchAsUser Off
335+
<%- end -%>
336+
<%- if directory['auth_ldap_search_as_user'] == 'on' -%>
337+
AuthLDAPSearchAsUser On
338+
<%- end -%>
339+
<%- if directory['auth_ldap_bind_authoritative'] == 'off' -%>
340+
AuthLDAPBindAuthoritative Off
341+
<%- end -%>
342+
<%- if directory['auth_ldap_bind_authoritative'] == 'on' -%>
343+
AuthLDAPBindAuthoritative On
344+
<%- end -%>
345+
<%- if directory['auth_ldap_authorize_prefix'] -%>
346+
AuthLDAPAuthorizePrefix <%= directory['auth_ldap_authorize_prefix'] %>
347+
<%- end -%>
348+
<%- if directory['auth_ldap_charset_config'] -%>
349+
AuthLDAPCharsetConfig <%= directory['auth_ldap_charset_config'] %>
350+
<%- end -%>
351+
<%- if directory['auth_ldap_compare_dn_on_server'] == 'off' -%>
352+
AuthLDAPCompareDNOnServer Off
353+
<%- end -%>
354+
<%- if directory['auth_ldap_compare_dn_on_server'] == 'on' -%>
355+
AuthLDAPCompareDNOnServer On
356+
<%- end -%>
357+
<%- if directory['auth_ldap_dereference_aliases'] -%>
358+
AuthLDAPDereferenceAliases <%= directory['auth_ldap_dereference_aliases'] %>
359+
<%- end -%>
360+
<%- if directory['auth_ldap_max_sub_group_depth'] -%>
361+
AuthLDAPMaxSubGroupDepth <%= directory['auth_ldap_max_sub_group_depth'] %>
362+
<%- end -%>
363+
<%- if directory['auth_ldap_remote_user_attribute'] -%>
364+
AuthLDAPRemoteUserAttribute <%= directory['auth_ldap_remote_user_attribute'] %>
365+
<%- end -%>
366+
<%- if directory['auth_ldap_remote_user_is_dn'] == 'off' -%>
367+
AuthLDAPRemoteUserIsDN Off
368+
<%- end -%>
369+
<%- if directory['auth_ldap_remote_user_is_dn'] == 'on' -%>
370+
AuthLDAPRemoteUserIsDN On
371+
<%- end -%>
372+
<%- if directory['auth_ldap_sub_group_attribute'] -%>
373+
AuthLDAPSubGroupAttribute <%= directory['auth_ldap_sub_group_attribute'] %>
374+
<%- end -%>
375+
<%- if directory['auth_ldap_sub_group_class'] -%>
376+
AuthLDAPSubGroupClass <%= directory['auth_ldap_sub_group_class'] %>
377+
<%- end -%>
318378
<%- if directory['fallbackresource'] -%>
319379
FallbackResource <%= directory['fallbackresource'] %>
320380
<%- end -%>

0 commit comments

Comments
 (0)