You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "sebastianwth (JIRA)" <ji...@apache.org> on 2018/09/05 15:32:01 UTC

[jira] [Created] (AIRFLOW-3013) LDAPInvalidPortError: port must be an integerfirst reached

sebastianwth created AIRFLOW-3013:
-------------------------------------

             Summary: LDAPInvalidPortError: port must be an integerfirst reached
                 Key: AIRFLOW-3013
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3013
             Project: Apache Airflow
          Issue Type: Bug
          Components: authentication
    Affects Versions: 1.10.0
         Environment: debian stretch, kubernetes, docker
            Reporter: sebastianwth


Has anyone else experienced this ldap related error with airflow 10?


{code:java}
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py", line 69, in inner return self._run_view(f, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py", line 368, in _run_view return fn(self, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/airflow/www/views.py", line 735, in login return airflow.login.login(self, request) File "/usr/local/lib/python2.7/dist-packages/airflow/utils/db.py", line 74, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/airflow/contrib/auth/backends/ldap_auth.py", line 296, in login LdapUser.try_login(username, password) File "/usr/local/lib/python2.7/dist-packages/airflow/contrib/auth/backends/ldap_auth.py", line 187, in try_login configuration.conf.get("ldap", "bind_password")) File "/usr/local/lib/python2.7/dist-packages/airflow/contrib/auth/backends/ldap_auth.py", line 68, in get_ldap_connection server = Server(configuration.conf.get("ldap", "uri"), use_ssl, tls_configuration) File "/usr/local/lib/python2.7/dist-packages/ldap3/core/server.py", line 118, in __init__ raise LDAPInvalidPortError('port must be an integer') LDAPInvalidPortError: port must be an integer{code}


My airflow.cfg looks as such:


{code:java}
[ webserver ]
authenticate = True
auth_backend = airflow.contrib.auth.backends.ldap_auth

[ldap]
uri = ldaps://ldap.jumpcloud.com:636
user_filter = objectClass=*
user_name_attr = uid
group_member_attr = memberOf
bind_user = uid=airflowldapservice,ou=Users,o=ORGANIZATION,dc=jumpcloud,dc=com
bind_password = PASSWORD
basedn = ou=Users,o=ORGANIZATION,dc=jumpcloud,dc=com
cacert = /etc/ca/ldap_ca.crt
search_scope = LEVEL{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)