0

Is there anyone who has configured LDAP or Active Directory in Airflow?
When I try to set things inside webserver_config.py, it doesn’t work.

[core]

auth_manager = airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager

And inside webserver_config.py I’m using:

from airflow.www.security import AirflowSecurityManager
from airflow.providers.fab.auth_manager.security_manager.override import FabAirflowSecurityManagerOverride
from flask_appbuilder.security.manager import AUTH_LDAP
from flask_appbuilder.const import AUTH_LDAP

I’m using these, but it’s not working.

1 Answer 1

0

In Airflow 3, new configurations are added to the apiserver instead of the webserver.

For Example:

LDAP configurations can be set up this way.

apiServer:
  apiServerConfig: | 

    from __future__ import annotations

    import os

    from flask_appbuilder.const import AUTH_LDAP

    basedir = os.path.abspath(os.path.dirname(__file__))
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.