Commit 67b8b6a8 authored by Wade Fitzpatrick's avatar Wade Fitzpatrick

fix: use RESTARTABLE client strategy for persistent connections

parent 5eeddfb2
......@@ -3,7 +3,7 @@ from flask.ext.login import UserMixin
from burpui.misc.auth.interface import BUIhandler, BUIuser
from ldap3 import Server, Connection, ALL
from ldap3 import Server, Connection, ALL, RESTARTABLE
except ImportError:
raise ImportError('Unable to load \'ldap3\' module')
......@@ -56,7 +56,7 @@ class LdapLoader:
self.server = Server(, port=int(self.port), use_ssl=self.ssl, get_info=ALL, tls=self.tls)'LDAP Server = {0}'.format(str(self.server)))
self.ldap = Connection(self.server, user=self.binddn, password=self.bindpw, raise_exceptions=True)
self.ldap = Connection(self.server, user=self.binddn, password=self.bindpw, raise_exceptions=True, client_strategy=RESTARTABLE)
if self.ldap.bind():'LDAP Connection = {0}'.format(str(self.ldap)))'OK, connected to LDAP')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment