Stub methods in async client

This commit is contained in:
sfigato 2020-08-29 19:42:24 +02:00
parent e454fbd84a
commit 8779db9ca0
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -4,7 +4,6 @@ from bonsai import LDAPClient
from phi.logging import get_logger from phi.logging import get_logger
log = get_logger(__name__) log = get_logger(__name__)
@ -96,6 +95,7 @@ class AsyncClient(LDAPClient):
attribute_id="uid", attribute_id="uid",
ou=None, ou=None,
method="SIMPLE", method="SIMPLE",
**kwargs,
): ):
self.proto, self.host, _port = parse_host(host) self.proto, self.host, _port = parse_host(host)
self.port = checked_port(port, _port) self.port = checked_port(port, _port)
@ -130,3 +130,9 @@ class AsyncClient(LDAPClient):
self.set_auto_page_acquire(True) self.set_auto_page_acquire(True)
self.set_credentials(self.method, user=self.username, password=self.password) self.set_credentials(self.method, user=self.username, password=self.password)
def open(self):
pass
def close(self):
pass