Add sample config for LDAP connection options, disable referrals by default, prefetch user groups to reduce LDAP queries when checking group memberships.

This commit is contained in:
Chris Church
2015-12-08 12:04:43 -05:00
parent 667d8a2667
commit 8552ea91a8
5 changed files with 38 additions and 9 deletions

View File

@@ -929,7 +929,7 @@ class LdapTest(BaseTest):
if not self.ldap_password:
self.skipTest('no test LDAP password defined')
# Set test LDAP settings that are always needed.
for name in ('SERVER_URI', 'BIND_DN', 'BIND_PASSWORD', 'USE_TLS'):
for name in ('SERVER_URI', 'BIND_DN', 'BIND_PASSWORD', 'USE_TLS', 'CONNECTION_OPTIONS'):
self.use_test_setting(name)
def check_login(self, username=None, password=None, should_fail=False):