ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

Connector LDAP

This component connects, searches and gets data from the LDAP server.

Data In/Data Out

Data In

N/A

Data Out

Connector puts output data into a  data.pickle file

Data from the file can be loaded using the following Python code:


import pickle


with open('data.pickle', 'rb') as f:

    data = pickle.load(f)


Data structure loaded from pickle file is a list of tuples, where each result tuple is of the form (dn,entry), where 

dn is a string containing the DN (distinguished name) of the entry, entry is a dictionary containing the attributes. 


Attribute types are used as string dictionary keys and attribute values are stored in a list as dictionary values.



Parameters

Screenshot 2021-09-23 at 5.07.08 PM.png

uri

URI to LDAP server.

 

Credentials

bind_dn

bind dn to authenticate against.

password

password for the specified bind dn.

 

Search Parameters

base dn

The LDAP base dn to start searching from.

scope

Can be base, one-level, or subtree.

base - search only on the base dn.

one-level - searches one-level below the base dn.

subtree - searches all subtrees that are under the base dn.

filter string

LDAP filter string.

Learn more: about LDAP filtering here