Hello,
My sanitized config looks like this:
[webserver]
authenticate = True
auth_backend = airflow.contrib.auth.backends.ldap_auth
[ldap]
user_filter = objectClass=*
user_name_attr = sAMAccountName
bind_user = MYDOMAIN\binduser
bind_password = XXXXXXX
basedn = "OU=All Users,DC=ad,DC=example,DC=com"
cacert = /etc/ca/ldap_ca.crt
search_scope = SUBTREE
I have also tried "LEVEL" as the search_scope. In both cases I pass my credentials into the Airflow Auth screen and just get the following back in the airflow webserver log:
[2016-04-25 17:06:07,284] {ldap_auth.py:119} INFO - Cannot find user myuser
I know that I am binding successfully to AD, as if I put a bad user/password in the bind info, it gives me a failed to bind message. Is there a way to force any more detailed logging?
In the past when configuring auth for Apache web servers using the same AD infrastructure I have successfully used this dn:
OU=All Users,DC=ad,DC=example,DC=com?sAMAccountName?sub?(objectclass=*)
Any pointers?
Thank you!