Project

General

Profile

Actions

User story #21068

closed

Add option to make user login case insensitive

Added by Elaad FURREEDAN over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:

Description

We want to be able to have the option to enable or disable case sensitivity


Subtasks 2 (0 open2 closed)

Bug #21135: rudder server create user errorReleasedAlexis MoussetActions
Enhancement #21249: Documentation about case-insensitive loginsReleasedAlexis MoussetActions

Related issues 1 (0 open1 closed)

Related to Authentication backends - Bug #18465: AD (LDAP) login are case insensitive (but not in Rudder)ResolvedElaad FURREEDANActions
Actions #1

Updated by Elaad FURREEDAN over 2 years ago

  • Related to Bug #18465: AD (LDAP) login are case insensitive (but not in Rudder) added
Actions #2

Updated by Elaad FURREEDAN over 2 years ago

  • Status changed from New to In progress
Actions #3

Updated by Elaad FURREEDAN over 2 years ago

Purpose

Be able to log in with username without case sensitivity

How to test

1. Make sure in /opt/rudder/etc/rudder-users.xml the option case-sensitivity is on true

2. In /opt/rudder/etc/rudder-users.xml 3 users toto, ToTO and TITI with different password:

<user name="toto" password="..." role="administrator"/>
<user name="ToTO" password="..." role="administrator"/>
<user name="TITI" password="..." role="administrator"/>

See in logs, you should get a warning about the two similar login in /var/log/rudder/webapp/... for toto

Users with potential username collision if case sensitivity is deactivated: toto

3. Try to log in with username

  • tiTI : should fail (with TITI password)
  • TITI : should succeed
  • ToTO : should succeed
  • toto : should succeed

4. Change option case-sensitivity to false in /opt/rudder/etc/rudder-users.xml

<authentication hash="bcrypt" case-sensitivity="false">
...
</authentication>

5. Try to log in with username (with their password)
  • TITI : should succeed
  • titi : should suceed (with TITI password)
  • toto : should fail
  • ToTO : should fail

See in logs, you should get an error about same login in /var/log/rudder/webapp/... for toto :

Users with duplicates username will be ignored: toto

Actions #4

Updated by Elaad FURREEDAN over 2 years ago

  • Status changed from In progress to Pending release
  • Pull Request set to https://github.com/Normation/rudder/pull/4258
Actions #5

Updated by Alexis Mousset over 2 years ago

  • Category set to System integration
Actions #6

Updated by Alexis Mousset over 2 years ago

  • Subtask #21249 added
Actions #7

Updated by Alexis Mousset over 2 years ago

  • Subject changed from Make user login not case sensitive to Add option to make user login case insensitive
Actions #8

Updated by Vincent MEMBRÉ over 2 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.2.0~beta1 which was released today.

Actions

Also available in: Atom PDF