[GH-ISSUE #1510] django-auth-ldap>=1.6.0 compatibility issue #1191

Closed
opened 2026-02-27 11:15:47 +03:00 by kerem · 0 comments
Owner

Originally created by @alexcustos on GitHub (Jun 28, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1510

Impacted versions

  • Modoboa: 1.10.5
  • installer used: Yes/No ?
  • Webserver: Nginx/Apache

Steps to reproduce

pip install django-auth-ldap>=1.3.0
It's working fine up to version 1.5.0

Current behavior

Internal Server Error: /accounts/login/
Traceback (most recent call last):
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/utils/decorators.py", line 185, in inner
    return func(*args, **kwargs)
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/utils/decorators.py", line 185, in inner
    return func(*args, **kwargs)
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa/core/views/auth.py", line 34, in dologin
    password=form.cleaned_data["password"])
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 70, in authenticate
    user = _authenticate_with_backend(backend, backend_path, request, credentials)
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 116, in _authenticate_with_backend
    return backend.authenticate(*args, **credentials)
  File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa/lib/authbackends.py", line 119, in authenticate
    username=username, password=password)
TypeError: authenticate() takes at least 2 arguments (3 given)
Originally created by @alexcustos on GitHub (Jun 28, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1510 # Impacted versions * Modoboa: 1.10.5 * installer used: **Yes**/No ? * Webserver: **Nginx**/Apache # Steps to reproduce pip install django-auth-ldap>=1.3.0 It's working fine up to version 1.5.0 # Current behavior ``` Internal Server Error: /accounts/login/ Traceback (most recent call last): File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/modoboa/env/lib/python2.7/site-packages/django/utils/decorators.py", line 185, in inner return func(*args, **kwargs) File "/srv/modoboa/env/lib/python2.7/site-packages/django/utils/decorators.py", line 185, in inner return func(*args, **kwargs) File "/srv/modoboa/env/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa/core/views/auth.py", line 34, in dologin password=form.cleaned_data["password"]) File "/srv/modoboa/env/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 70, in authenticate user = _authenticate_with_backend(backend, backend_path, request, credentials) File "/srv/modoboa/env/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 116, in _authenticate_with_backend return backend.authenticate(*args, **credentials) File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa/lib/authbackends.py", line 119, in authenticate username=username, password=password) TypeError: authenticate() takes at least 2 arguments (3 given) ```
kerem 2026-02-27 11:15:47 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1191
No description provided.