ensure ssl
This commit is contained in:
parent
650b71a7c3
commit
ea4c0ec178
1 changed files with 2 additions and 2 deletions
|
@ -26,13 +26,13 @@ if mult_server < 1:
|
||||||
def ldapservers():
|
def ldapservers():
|
||||||
# Just one server, no need for a pool
|
# Just one server, no need for a pool
|
||||||
if mult_server == 1:
|
if mult_server == 1:
|
||||||
ldapserver = Server(config['LDAP']['LDAPSERVER1'])
|
ldapserver = Server(config['LDAP']['LDAPSERVER1'], use_ssl=True)
|
||||||
return ldapserver
|
return ldapserver
|
||||||
# Multiple servers, set up a pool
|
# Multiple servers, set up a pool
|
||||||
else:
|
else:
|
||||||
ldapserver = ServerPool(None)
|
ldapserver = ServerPool(None)
|
||||||
for x in range(1, (mult_server+1)):
|
for x in range(1, (mult_server+1)):
|
||||||
ins = Server(config['LDAP']['LDAPSERVER' + str(x)])
|
ins = Server(config['LDAP']['LDAPSERVER' + str(x)], use_ssl=True)
|
||||||
ldapserver.add(ins)
|
ldapserver.add(ins)
|
||||||
return ldapserver
|
return ldapserver
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue