Commit 8c7f67d7 authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

ldap: Use new constant `RESTARTABLE`

The old STRATEGY_SYNC_RESTARTABLE has been dropped from current releases.
parent 2547ed24
Pipeline #4761 passed with stage
in 41 seconds
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import ssl
from ldap3 import Server, Connection, STRATEGY_SYNC_RESTARTABLE
from ldap3 import Server, Connection, RESTARTABLE
from ldap3.core.tls import Tls
from ldap3.utils.uri import parse_uri
from django.conf import settings
......@@ -40,7 +40,7 @@ class Ldap(object):
# Make the connection reusable
return c
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment