You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Chris Riccomini (JIRA)" <ji...@apache.org> on 2017/01/05 19:01:00 UTC
[jira] [Commented] (AIRFLOW-702) LDAP Auth Case Sensitive Regex
[ https://issues.apache.org/jira/browse/AIRFLOW-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15802204#comment-15802204 ]
Chris Riccomini commented on AIRFLOW-702:
-----------------------------------------
I have hit this issue as well. I tested by changing `cn` to `CN`, and that fixed the issue.
> 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
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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)