0
0
Apache Airflowdevops~10 mins

Authentication backends (LDAP, OAuth) in Apache Airflow - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable LDAP authentication in Airflow's configuration.

Apache Airflow
[ldap]
auth_backend = [1]
Drag options to blanks, or click blank then click option'
Aairflow.auth.backend.noauth
Bairflow.www.auth.backend.default
Cairflow.auth.backend.oauth
Dairflow.contrib.auth.backends.ldap_auth
Attempts:
3 left
💡 Hint
Common Mistakes
Using the default backend disables LDAP authentication.
Confusing OAuth backend with LDAP backend.
2fill in blank
medium

Complete the code to set the OAuth authentication backend in Airflow's configuration.

Apache Airflow
[webserver]
auth_backend = [1]
Drag options to blanks, or click blank then click option'
Aairflow.www.auth.backend.oauth
Bairflow.auth.backend.noauth
Cairflow.www.auth.backend.default
Dairflow.contrib.auth.backends.ldap_auth
Attempts:
3 left
💡 Hint
Common Mistakes
Using LDAP backend instead of OAuth.
Using default backend disables OAuth.
3fill in blank
hard

Fix the error in the Airflow configuration to correctly enable LDAP authentication.

Apache Airflow
[ldap]
auth_backend = [1]
Drag options to blanks, or click blank then click option'
Aairflow.www.auth.backend.ldap_auth
Bairflow.auth.backends.ldap_auth
Cairflow.contrib.auth.backends.ldap_auth
Dairflow.contrib.auth.backends.ldap
Attempts:
3 left
💡 Hint
Common Mistakes
Missing 'ldap_auth' suffix.
Wrong module path prefix.
4fill in blank
hard

Fill both blanks to configure OAuth client ID and secret in Airflow's configuration.

Apache Airflow
[oauth]
client_id = [1]
client_secret = [2]
Drag options to blanks, or click blank then click option'
Ayour-client-id
Byour-client-secret
Cdefault-secret
Ddefault-id
Attempts:
3 left
💡 Hint
Common Mistakes
Using default or placeholder values instead of real credentials.
Swapping client ID and secret.
5fill in blank
hard

Fill all three blanks to configure Airflow to use LDAP authentication with a specific server and base DN.

Apache Airflow
[ldap]
auth_backend = [1]
server = [2]
basedn = [3]
Drag options to blanks, or click blank then click option'
Aairflow.contrib.auth.backends.ldap_auth
Bldap://ldap.example.com
Cdc=example,dc=com
Dairflow.auth.backend.ldap
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong backend path.
Incorrect server URL format.
Wrong base DN syntax.