[ 
https://issues.apache.org/jira/browse/AIRFLOW-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15802219#comment-15802219
 ] 

ASF subversion and git services commented on AIRFLOW-702:
---------------------------------------------------------

Commit 794540f9591cf6e3b7e182d0e2a26ddd14cc1f92 in incubator-airflow's branch 
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=794540f ]

[AIRFLOW-702] Fix LDAP Regex Bug

Closes #1945 from robin-miller-
ow/feature/LDAPAuthRegexFix


> 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)

Reply via email to