Skip to content

Commit 1e4b62f

Browse files
committed
Require PROTOCOL_TLS; this is available in Python 3.6 and up.
1 parent d108e4d commit 1e4b62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: django_python3_ldap/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Settings used by django-python3.
33
"""
4-
from ssl import PROTOCOL_SSLv23
4+
from ssl import PROTOCOL_TLS
55

66
from django.conf import settings
77

@@ -46,7 +46,7 @@ def __init__(self, settings):
4646

4747
LDAP_AUTH_TLS_VERSION = LazySetting(
4848
name="LDAP_AUTH_TLS_VERSION",
49-
default=PROTOCOL_SSLv23,
49+
default=PROTOCOL_TLS,
5050
)
5151

5252
LDAP_AUTH_SEARCH_BASE = LazySetting(

0 commit comments

Comments
 (0)