|
299 | 299 | AuthLDAPGroupAttribute <%= groupattr %> |
300 | 300 | <%- end -%> |
301 | 301 | <%- end -%> |
302 | | - <%- if directory['auth_ldap_group_attribute_is_dn'] == 'off' -%> |
303 | | - AuthLDAPGroupAttributeIsDN Off |
304 | | - <%- end -%> |
305 | | - <%- if directory['auth_ldap_group_attribute_is_dn'] == 'on' -%> |
306 | | - AuthLDAPGroupAttributeIsDN On |
| 302 | + <%- unless directory['auth_ldap_group_attribute_is_dn'].nil? -%> |
| 303 | + AuthLDAPGroupAttributeIsDN <%= scope.call_function('apache::bool2httpd', [ directory['auth_ldap_group_attribute_is_dn'] ]) %> |
307 | 304 | <%- end -%> |
308 | 305 | <%- if directory['auth_ldap_initial_bind_pattern'] -%> |
309 | 306 | AuthLDAPInitialBindPattern <%= directory['auth_ldap_initial_bind_pattern'] %> |
310 | 307 | <%- 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 |
| 308 | + <%- unless directory['auth_ldap_bind_as_user'].nil? -%> |
| 309 | + AuthLDAPInitialBindAsUser <%= scope.call_function('apache::bool2httpd', [ directory['auth_ldap_bind_as_user'] ]) %> |
322 | 310 | <%- end -%> |
323 | | - <%- if directory['auth_ldap_search_as_user'] == 'off' -%> |
324 | | - AuthLDAPSearchAsUser Off |
| 311 | + <%- unless directory['auth_ldap_compare_as_user'].nil? -%> |
| 312 | + AuthLDAPCompareAsUser <%= scope.call_function('apache::bool2httpd', [ directory['auth_ldap_compare_as_user'] ]) %> |
325 | 313 | <%- end -%> |
326 | | - <%- if directory['auth_ldap_search_as_user'] == 'on' -%> |
327 | | - AuthLDAPSearchAsUser On |
| 314 | + <%- unless directory['auth_ldap_search_as_user'].nil? -%> |
| 315 | + AuthLDAPSearchAsUser <%= scope.call_function('apache::bool2httpd', [ directory['auth_ldap_search_as_user'] ]) %> |
328 | 316 | <%- 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 |
| 317 | + <%- unless directory['auth_ldap_bind_authoritative'].nil? -%> |
| 318 | + AuthLDAPBindAuthoritative <%= scope.call_function('apache::bool2httpd', [ directory['auth_ldap_bind_authoritative'] ]) %> |
334 | 319 | <%- end -%> |
335 | 320 | <%- if directory['auth_ldap_authorize_prefix'] -%> |
336 | 321 | AuthLDAPAuthorizePrefix <%= directory['auth_ldap_authorize_prefix'] %> |
337 | 322 | <%- end -%> |
338 | 323 | <%- if directory['auth_ldap_charset_config'] -%> |
339 | 324 | AuthLDAPCharsetConfig <%= directory['auth_ldap_charset_config'] %> |
340 | 325 | <%- 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 |
| 326 | + <%- unless directory['auth_ldap_compare_dn_on_server'].nil? -%> |
| 327 | + AuthLDAPCompareDNOnServer <%= scope.call_function('apache::bool2httpd', [ directory['auth_ldap_compare_dn_on_server'] ]) %> |
346 | 328 | <%- end -%> |
347 | 329 | <%- if directory['auth_ldap_dereference_aliases'] -%> |
348 | 330 | AuthLDAPDereferenceAliases <%= directory['auth_ldap_dereference_aliases'] %> |
|
353 | 335 | <%- if directory['auth_ldap_remote_user_attribute'] -%> |
354 | 336 | AuthLDAPRemoteUserAttribute <%= directory['auth_ldap_remote_user_attribute'] %> |
355 | 337 | <%- 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 |
| 338 | + <%- unless directory['auth_ldap_remote_user_is_dn'].nil? -%> |
| 339 | + AuthLDAPRemoteUserIsDN <%= scope.call_function('apache::bool2httpd', [ directory['auth_ldap_remote_user_is_dn'] ]) %> |
361 | 340 | <%- end -%> |
362 | 341 | <%- if directory['auth_ldap_sub_group_attribute'] -%> |
363 | 342 | AuthLDAPSubGroupAttribute <%= directory['auth_ldap_sub_group_attribute'] %> |
|
0 commit comments