[GH-ISSUE #514] Case sensitive password scheme issue #493

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

Originally created by @tonioo on GitHub (Jan 22, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/514

Originally assigned to: @tonioo on GitHub.

Currently, we expect upper-case password schemes. Modoboa will break if it encounter a lower-case password.

Traceback (most recent call last):

  File "/srv/python-envs/service/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/srv/python-envs/service/lib/python2.7/site-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)

  File "/srv/python-envs/service/lib/python2.7/site-packages/modoboa-1.1.0-py2.7.egg/modoboa/core/views/auth.py", line 20, in dologin
    password=form.cleaned_data["password"])

  File "/srv/python-envs/service/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 60, in authenticate
    user = backend.authenticate(**credentials)

  File "/srv/python-envs/service/lib/python2.7/site-packages/modoboa-1.1.0-py2.7.egg/modoboa/lib/authbackends.py", line 14, in authenticate
    if not user.check_password(password):

  File "/srv/python-envs/service/lib/python2.7/site-packages/modoboa-1.1.0-py2.7.egg/modoboa/core/models.py", line 134, in check_password
    hasher = get_password_hasher(scheme)

  File "/srv/python-envs/service/lib/python2.7/site-packages/modoboa-1.1.0-py2.7.egg/modoboa/core/password_hashers/__init__.py", line 23, in get_password_hasher
    hasher = globals()['%sHasher' % scheme]

KeyError: u'plainHasher'
Originally created by @tonioo on GitHub (Jan 22, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/514 Originally assigned to: @tonioo on GitHub. Currently, we expect upper-case password schemes. Modoboa will break if it encounter a lower-case password. ``` python Traceback (most recent call last): File "/srv/python-envs/service/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/srv/python-envs/service/lib/python2.7/site-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/srv/python-envs/service/lib/python2.7/site-packages/modoboa-1.1.0-py2.7.egg/modoboa/core/views/auth.py", line 20, in dologin password=form.cleaned_data["password"]) File "/srv/python-envs/service/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 60, in authenticate user = backend.authenticate(**credentials) File "/srv/python-envs/service/lib/python2.7/site-packages/modoboa-1.1.0-py2.7.egg/modoboa/lib/authbackends.py", line 14, in authenticate if not user.check_password(password): File "/srv/python-envs/service/lib/python2.7/site-packages/modoboa-1.1.0-py2.7.egg/modoboa/core/models.py", line 134, in check_password hasher = get_password_hasher(scheme) File "/srv/python-envs/service/lib/python2.7/site-packages/modoboa-1.1.0-py2.7.egg/modoboa/core/password_hashers/__init__.py", line 23, in get_password_hasher hasher = globals()['%sHasher' % scheme] KeyError: u'plainHasher' ```
kerem 2026-02-27 11:12:03 +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#493
No description provided.