m-rossi opened a new issue, #67534:
URL: https://github.com/apache/airflow/issues/67534

   ### Under which category would you file this issue?
   
   Airflow Core
   
   ### Apache Airflow version
   
   3.2.1
   
   ### What happened and how to reproduce it?
   
   I have an Airflow deployment using LDAP. When updating to version 3.2.1 
(from 3.1.8) I get the following error during login
   ```Traceback (most recent call last):
     File "/opt/conda/lib/python3.12/site-packages/flask/app.py", line 1511, in 
wsgi_app
       response = self.full_dispatch_request()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/conda/lib/python3.12/site-packages/flask/app.py", line 919, in 
full_dispatch_request
       rv = self.handle_user_exception(e)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/conda/lib/python3.12/site-packages/flask/app.py", line 917, in 
full_dispatch_request
       rv = self.dispatch_request()
            ^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/conda/lib/python3.12/site-packages/flask/app.py", line 902, in 
dispatch_request
       return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) 
 # type: ignore[no-any-return]
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/conda/lib/python3.12/site-packages/flask_appbuilder/security/decorators.py",
 line 36, in wrapped_view
       response = make_response(view(*args, **kwargs))
                                ^^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/conda/lib/python3.12/site-packages/flask_appbuilder/security/views.py", 
line 649, in login
       user = self.appbuilder.sm.auth_user_ldap(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/conda/lib/python3.12/site-packages/airflow/providers/fab/auth_manager/security_manager/override.py",
 line 1981, in auth_user_ldap
       user_dn, user_attributes = self._search_ldap(ldap, con, username)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/conda/lib/python3.12/site-packages/airflow/providers/fab/auth_manager/security_manager/override.py",
 line 2473, in _search_ldap
       escaped_username = ldap.filter.escape_filter_chars(username)
                          ^^^^^^^^^^^
   AttributeError: module 'ldap' has no attribute 'filter'
   ```
   
   ### What you think should happen instead?
   
   Successful login.
   
   ### Operating System
   
   PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" 
VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian 
HOME_URL="https://www.debian.org/"; SUPPORT_URL="https://www.debian.org/support"; 
BUG_REPORT_URL="https://bugs.debian.org/";
   
   ### Deployment
   
   None
   
   ### Apache Airflow Provider(s)
   
   _No response_
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Official Helm Chart version
   
   Not Applicable
   
   ### Kubernetes Version
   
   Not Applicable
   
   ### Helm Chart configuration
   
   Not Applicable
   
   ### Docker Image customizations
   
   Not Applicable
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to