From 1682cb6bdbf7457f09e4059aa2a1fd461e8d8fa8 Mon Sep 17 00:00:00 2001 From: Cameron Sharp Date: Mon, 11 Nov 2019 23:49:34 +0000 Subject: [PATCH] oh yeah, ssl --- octoprint_auth_ldap/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/octoprint_auth_ldap/__init__.py b/octoprint_auth_ldap/__init__.py index 53f1b28..73b18d6 100644 --- a/octoprint_auth_ldap/__init__.py +++ b/octoprint_auth_ldap/__init__.py @@ -7,6 +7,7 @@ from octoprint.settings import settings import ldap import ldap3 import ldap3.utils.dn +import ssl import uuid LDAP_SERVER = ldap3.Server("pool.ldap.ehlab.uk", tls=ldap3.Tls(validate=ssl.CERT_REQUIRED, version=ssl.PROTOCOL_TLSv1_2))