Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: authd treats usernames as case-sensitive #531

Open
2 tasks done
adombeck opened this issue Sep 12, 2024 · 0 comments
Open
2 tasks done

Issue: authd treats usernames as case-sensitive #531

adombeck opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working jira

Comments

@adombeck
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues and found none that matched mine

Describe the issue

Usernames in Microsoft Entra are case-insensitive, so login via authd and the authd-msentraid broker should also treat usernames as case-insensitive, but it does not.

Steps to reproduce

  1. sudo login [email protected]
  2. Complete the device authentication
  3. Set a local password
  4. Now try to log in as the same user but use different lower/uppercase:
    sudo login [email protected]
    
  5. No local authentication is offered
  6. The logs contain DEBUG User "[email protected]" is unknown

System information and logs

authd version

authd	0.3.4~ppa3

authd-msentraid broker version

name:      authd-msentraid
summary:   MS EntraID Broker for authd
publisher: --
store-url: https://snapcraft.io/authd-msentraid
license:   GPL-3.0
description: |
  Broker that enables OIDC authentication with MS EntraID group management
  for authd.
services:
  authd-msentraid: simple, enabled, active
refresh-date: today at 12:03 CEST
channels:
  0.x/stable:    0.1           2024-08-23 (33) 17MB -
  0.x/candidate: ^                                  
  0.x/beta:      ^                                  
  0.x/edge:      0.1           2024-09-10 (44) 17MB -
installed:       main~2182c5f4            (x1) 17MB -

gnome-shell version

gnome-shell:
  Installed: 46.3.1-1ubuntu1~24.04.1authd1
  Candidate: 46.3.1-1ubuntu1~24.04.1authd1
  Version table:
 *** 46.3.1-1ubuntu1~24.04.1authd1 500
        500 https://ppa.launchpadcontent.net/ubuntu-enterprise-desktop/authd-edge/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status
     46.3.1-1ubuntu1~24.04.1 500
        500 https://ppa.launchpadcontent.net/ubuntu-enterprise-desktop/authd/ubuntu noble/main amd64 Packages
     46.0-0ubuntu6~24.04.4 500
        500 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     46.0-0ubuntu6~24.04.3 500
        500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
     46.0-0ubuntu5 500
        500 http://de.archive.ubuntu.com/ubuntu noble/main amd64 Packages

Distribution

Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble

Logs

[667658.599568] ubuntu authd[216727]: 2024/09/12 12:28:57 WARN rpc error: code = NotFound desc =
[667658.600179] ubuntu authd[216727]: DEBUG User "[email protected]" is unknown

authd broker configuration

/etc/authd/brokers.d/authd-msentraid.conf

[authd]
name = Microsoft Entra ID
brand_icon = /snap/authd-msentraid/current/broker_icon.png
dbus_name = com.ubuntu.authd.MSEntraID
dbus_object = /com/ubuntu/authd/MSEntraID

authd-msentraid configuration

[oidc]
issuer = https://login.microsoftonline.com/<UUID redacted>/v2.0
client_id = <UUID redacted> 
#client_id = <UUID redacted>

Double check your logs

  • I have redacted any sensitive information from the logs
@adombeck adombeck added bug Something isn't working jira labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira
Projects
None yet
Development

No branches or pull requests

1 participant