Loading ldap/Directory.py +4 −4 Changes for ldap/Directory.py: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -24,17 +24,17 @@ class Directory: https://gitlab.cl.uni-heidelberg.de/fachschaft/codex/-/blob/master/ldap/LdapDatabase.py?ref_type=heads """ def __init__(self, ldap_server_url: str, base_dn: str): def __init__(self, url: str, base_dn: str): """ Creates the LdapDatabase instance. Does not establish any connections whatsoever. :param ldap_server_url: A ldap server url (must use either ldaps:// or ldap:// scheme) :param url: A ldap server url (must use either ldaps:// or ldap:// scheme) :param base_dn: The distinguished name below which to look for users (e.g. "ou=employees,dc=example,dc=com") """ if not is_valid_server_url(ldap_server_url): if not is_valid_server_url(url): raise ValueError("ldap_server_url must begin with ldaps:// or ldap://") self.ldap_server_url = ldap_server_url self.ldap_server_url = url self.base_dn = base_dn # Note: The URL scheme (ldap:// or ldaps://) has precedence over the parameter "use_ssl" Loading Loading
ldap/Directory.py +4 −4 Changes for ldap/Directory.py: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -24,17 +24,17 @@ class Directory: https://gitlab.cl.uni-heidelberg.de/fachschaft/codex/-/blob/master/ldap/LdapDatabase.py?ref_type=heads """ def __init__(self, ldap_server_url: str, base_dn: str): def __init__(self, url: str, base_dn: str): """ Creates the LdapDatabase instance. Does not establish any connections whatsoever. :param ldap_server_url: A ldap server url (must use either ldaps:// or ldap:// scheme) :param url: A ldap server url (must use either ldaps:// or ldap:// scheme) :param base_dn: The distinguished name below which to look for users (e.g. "ou=employees,dc=example,dc=com") """ if not is_valid_server_url(ldap_server_url): if not is_valid_server_url(url): raise ValueError("ldap_server_url must begin with ldaps:// or ldap://") self.ldap_server_url = ldap_server_url self.ldap_server_url = url self.base_dn = base_dn # Note: The URL scheme (ldap:// or ldaps://) has precedence over the parameter "use_ssl" Loading