Skip to main content

LDAP

Module ldap

Certified

This plugin extracts the following:

  • People
  • Names, emails, titles, and manager information for each person
  • List of groups

CLI based Ingestion

Install the Plugin

pip install 'acryl-datahub[ldap]'

Starter Recipe

Check out the following recipe to get started with ingestion! See below for full configuration options.

For general pointers on writing and running a recipe, see our main recipe guide.

source:
type: "ldap"
config:
# Coordinates
ldap_server: ldap://localhost

# Credentials
ldap_user: "cn=admin,dc=example,dc=org"
ldap_password: "admin"

# Options
base_dn: "dc=example,dc=org"

sink:
# sink configs

Config Details

Note that a . is used to denote nested fields in the YAML recipe.

View All Configuration Options
FieldRequiredTypeDescriptionDefault
envstringThe environment that all assets produced by this connector belong toPROD
platform_instancestringThe instance of the platform that all assets produced by this recipe belong toNone
ldap_serverstringLDAP server URL.None
ldap_userstringLDAP user.None
ldap_passwordstringLDAP password.None
base_dnstringLDAP DN.None
filterstringLDAP extractor filter.(objectClass=*)
attrs_listArray of stringRetrieved attributes listNone
custom_props_listArray of stringA list of custom attributes to extract from the LDAP provider.None
drop_missing_first_last_namebooleanIf set to true, any users without first and last names will be dropped.True
page_sizeintegerSize of each page to fetch when extracting metadata.20
user_attrs_mapDict{}
group_attrs_mapDict{}
stateful_ingestionStatefulStaleMetadataRemovalConfig (see below for fields)
stateful_ingestion.enabledbooleanThe type of the ingestion state provider registered with datahub.False
stateful_ingestion.ignore_old_statebooleanIf set to True, ignores the previous checkpoint state.False
stateful_ingestion.ignore_new_statebooleanIf set to True, ignores the current checkpoint state.False
stateful_ingestion.remove_stale_metadatabooleanSoft-deletes the entities present in the last successful run but missing in the current run with stateful_ingestion enabled.True

Code Coordinates

  • Class Name: datahub.ingestion.source.ldap.LDAPSource
  • Browse on GitHub

Questions

If you've got any questions on configuring ingestion for LDAP, feel free to ping us on our Slack