Browse Source

ensure ssl

merge-requests/2/head
downhill 4 years ago
parent
commit
ea4c0ec178
  1. 4
      nameko-func.py

4
nameko-func.py

@ -26,13 +26,13 @@ if mult_server < 1:
def ldapservers():
# Just one server, no need for a pool
if mult_server == 1:
ldapserver = Server(config['LDAP']['LDAPSERVER1'])
ldapserver = Server(config['LDAP']['LDAPSERVER1'], use_ssl=True)
return ldapserver
# Multiple servers, set up a pool
else:
ldapserver = ServerPool(None)
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)
return ldapserver

Loading…
Cancel
Save