You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Robin Miller (JIRA)" <ji...@apache.org> on 2016/12/15 09:32:58 UTC
[jira] [Created] (AIRFLOW-702) LDAP Auth Case Sensitive Regex
Robin Miller created AIRFLOW-702:
------------------------------------
Summary: LDAP Auth Case Sensitive Regex
Key: AIRFLOW-702
URL: https://issues.apache.org/jira/browse/AIRFLOW-702
Project: Apache Airflow
Issue Type: Bug
Components: security, webserver
Environment: Connecting to Windows Active Directory
Reporter: Robin Miller
Assignee: Robin Miller
In the groups_user function in ldap_auth.py the regex is set to the following:
regex = re.compile("cn=([^,]*).*")
This is used to grab any groups by searching for sections of the form:
"cn=LDAP_Group"
However, Windows Active Directory returns groups in the form:
"CN=LDAP_Group"
This isn't caught by this regex, so throws an error when it tries to find it. An easy fix would be to make this regex case insensitive. I do not believe slackening this up will cause any issues.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)