Skip to content

Commit 908453a

Browse files
authored
Merge pull request #1928 from HT43-bqxFqB/enable_ldapreferrals
Add LDAPReferrals configuration parameter
2 parents 497fbd6 + 976b60e commit 908453a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

spec/defines/vhost_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@
183183
'/foo.js',
184184
],
185185
},
186+
{
187+
'path' => '/',
188+
'provider' => 'location',
189+
'auth_ldap_referrals' => 'off',
190+
},
186191
{
187192
'path' => '/var/www/node-app/public',
188193
'passenger_enabled' => true,
@@ -601,6 +606,11 @@
601606
content: %r{^\s+Require any-valid2$},
602607
)
603608
}
609+
it {
610+
is_expected.to contain_concat__fragment('rspec.example.com-directories').with(
611+
content: %r{^\s+LDAPReferrals off$},
612+
)
613+
}
604614
it {
605615
is_expected.to contain_concat__fragment('rspec.example.com-directories').with(
606616
content: %r{^\s+Options\sIndexes\sFollowSymLinks\sMultiViews$},

templates/vhost/_directories.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@
290290
<%- if directory['auth_merging'] -%>
291291
AuthMerging <%= directory['auth_merging'] %>
292292
<%- end -%>
293+
<%- if directory['auth_ldap_referrals'] -%>
294+
LDAPReferrals <%= directory['auth_ldap_referrals'] %>
295+
<%- end -%>
293296
<%- if directory['auth_ldap_url'] -%>
294297
AuthLDAPURL <%= directory['auth_ldap_url'] %>
295298
<%- end -%>

0 commit comments

Comments
 (0)