
OPT_X_TLS_CRL_ALL Perform CRL checks for the whole cert chain ldap. OPT_X_TLS_CRL_NONE Don’t perform CRL checks OPT_X_TLS_CRL_PEER Perform CRL check for peer’s end entity cert. Get/set certificate revocation list (CRL) check mode. Get/set path to file with PEM encoded key for client cert authentication, Get/set path to file with PEM encoded cert for client cert authentication, Get/set path to PEM file with CA certs ldap. Get/set path to directory with CA certs ldap. Value 0 createsĪ new client-side context. Set and apply TLS settings to internal TLS context. OPT_X_TLS_CACERTFILE, '/path/to/ca.pem' ) conn. initialize ( "ldap://ldap.example" ) conn. It is also fine to instantiate a LDAPObject (or a subclass) directly.Ĭonn = ldap. This function is a thin wrapper around instantiatingĪny additional keyword arguments are passed to LDAPObject. See Bytes/text management for a complete documentation.ġ for only logging the method calls with arguments,Ģ for logging the method calls with arguments and the complete results andĩ for also logging the traceback of method calls. The bytes_mode and bytes_strictness arguments specify text/bytes Trace_stack_limit specifies the stack limit of tracebacks in debug log. Trace_file specifies a file-like object as target of the debug log and Trace_level specifies the amount of information being logged, Three optional arguments are for generating debug log information: The error handling in the callingĪpplication has to correctly handle this behaviour. Search etc.) then really opens the connection (lazy connect). Therefore the first call to an operation method (bind, Is called which just initializes the LDAP connection struct in the C API Note that internally the OpenLDAP function The internal connection type is determined from the URI, TCPįor ldap:// / ldaps://, IPC ( AF_UNIX) for ldapi://. It must be kept open during operationsĪnd explicitly closed after the LDAPObject is The socket file descriptor mustĪlready be connected. The fileno must either be a socket fileĭescriptor as int or a file-like object with a fileno() method If fileno parameter is given then the file descriptor will be used toĬonnect to an LDAP server.


When using multiple URIs you cannot determine to which URI your client The uri parameter may be a comma- or whitespace-separated list of URIsĬontaining only the schema, the host, and the port fields. Initializes a new connection object for accessing the given LDAP server,Īnd return an LDAPObject used to perform operations initialize ( uri ] ] ] ] ] ) → LDAPObject object ¶ This module defines the following functions: ldap. slapdtest Spawning test instances of OpenLDAP’s slapd server.ldap.syncrepl Implementation of a syncrepl consumer.

PYTHON INITIATER GENERATOR
