Materials

Download the video materials below

airflow_ldap.zip

Introduction

LDAP, the Lightweight Directory Access Protocol, is a mature, flexible, and well supported standards-based mechanism for interacting with directory servers. It’s often used for authentication and storing information about users, groups, and applications, but an LDAP directory server is a fairly general-purpose data store and can be used in a wide variety of applications.

Since the Airflow 2.0, the default UI is the Flask App Builder RBAC.

cf: https://github.com/dpgaspar/Flask-AppBuilder

Configure LDAP

Let's say in your company "Netflux" (netflux.com), there are different groups and users

Groups might be:

Users might be:

Therefore there are 2 organisational unit in your company:

ou=Users

ou=Groups

3 groups:

cn=Admin

cn=Marketing

cn=Data_science

Schema:

There is a file bootstrap.ldif corresponding to the ldap directory shown above.