feature: initial implementation of LDAP/AD sync

This commit is contained in:
ievgenii vdovenko 2025-07-11 16:04:18 +02:00
parent 77a339f82d
commit 7577eeb493

View file

@ -16,6 +16,12 @@ except ImportError:
ldap = Missing
@dataclass
class UserType:
DEFAULT: str = "DEFAULT"
ACTIVE_DIRECTORY: str = "ACTIVE_DIRECTORY"
class LdapDao(AuthLdapBase):
default_tls_cert_dir = "/etc/openldap/cacerts"
@ -116,6 +122,7 @@ class LdapDao(AuthLdapBase):
return ldap_conn
def fetch_all(self, ldap_filter: str = "(objectClass=*)", attributes: List[str] = None) -> Optional[List[dict]]:
# TODO: add pagination
ldap_conn = None
try:
if attributes is None: