Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C93F9200B51 for ; Mon, 18 Jul 2016 04:02:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C7D71160A86; Mon, 18 Jul 2016 02:02:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 22D38160A6B for ; Mon, 18 Jul 2016 04:02:24 +0200 (CEST) Received: (qmail 31581 invoked by uid 500); 18 Jul 2016 02:02:24 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 31567 invoked by uid 99); 18 Jul 2016 02:02:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2016 02:02:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A88A51A041B for ; Mon, 18 Jul 2016 02:02:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RT2j3YVW5cBQ for ; Mon, 18 Jul 2016 02:02:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 878885FD6B for ; Mon, 18 Jul 2016 02:02:21 +0000 (UTC) Received: (qmail 31541 invoked by uid 99); 18 Jul 2016 02:02:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2016 02:02:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 760AF2C02A0 for ; Mon, 18 Jul 2016 02:02:20 +0000 (UTC) Date: Mon, 18 Jul 2016 02:02:20 +0000 (UTC) From: "peter pang (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (AIRFLOW-331) correct the airflow online documentation on "Security / Web Authentication / LDAP " section MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 18 Jul 2016 02:02:25 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] peter pang updated AIRFLOW-331: ------------------------------- Comment: was deleted (was: I'm new from github, and I'm still studying to config the superuser and data_profiler users. It seems there are some bugs in the WebUI when use LDAP user filter. I'll send a pull request later. Thanks for response.) > correct the airflow online documentation on "Security / Web Authentication / LDAP " section > ------------------------------------------------------------------------------------------- > > Key: AIRFLOW-331 > URL: https://issues.apache.org/jira/browse/AIRFLOW-331 > Project: Apache Airflow > Issue Type: Wish > Components: docs > Affects Versions: Airflow 1.7.1.3 > Reporter: peter pang > Assignee: peter pang > Priority: Minor > Labels: documentation > > I'm trying to setup LDAP authentication for airflow 1.7.1.3 > I added the simple [ldap] config example showing onling to my airflow.cfg file, and the ldap login couldn't work. > After debug the auth_ldap.py I found "user_name_attr" and "search_scope" are not the setting value. > in the auth_ldap.py , configuration.get("ldap", "user_name_attr") return value is the whole line strings " uid # in case of Active Directory you would use" , include "#..." !! > ==================== > [ldap] > ..... > user_name_attr = uid # in case of Active Directory you would use > .... > search_scope = LEVEL # Set this to SUBTREE if using Active Directory, and not specifying an Organizational Unit > ===================== > so the comment lines shouldn't be there, they must be in a new line with no space or tab char before the '#' > ==================== > [ldap] > ........ > "#" in case of Active Directory you would use > user_name_attr = uid > ....... > "#" Set this to SUBTREE if using Active Directory, and not specifying an Organizational Unit > search_scope = LEVEL > ===================== > then ldap could work. -- This message was sent by Atlassian JIRA (v6.3.4#6332)