MSLDAPTarget – connection target object

class msldap.commons.target.MSLDAPTarget(ip, port=389, protocol=UniProto.CLIENT_TCP, tree=None, proxies=None, timeout=10, ldap_query_page_size=1000, ldap_query_ratelimit=0, dns: Optional[str] = None, dc_ip: Optional[str] = None, domain: Optional[str] = None, hostname: Optional[str] = None, ssl_ctx=None)

Describes the connection to the server.

Parameters
  • host (str) – IP address or hostname of the server

  • port (int) – port of the LDAP service running on the server

  • proto (UniProto) – Connection protocol to be used

  • tree (str) – The tree to connect to

  • proxies (List[UniProxyTarget]) – specifies what kind of proxy to be used

  • timeout (int) – connection timeout in seconds

  • ldap_query_page_size (int) – Maximum number of elements to fetch in each paged_query call.

  • ldap_query_ratelimit (float) – rate limit of paged queries. This will cause a sleep (in seconds) between fetching of each page of the query

  • dc_ip (str) – Ip address of the kerberos server (if kerberos is used)