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

No error message when login via GDM fails because no broker is installed #684

Open
adombeck opened this issue Dec 9, 2024 · 2 comments
Open
Labels
bug Something isn't working jira

Comments

@adombeck
Copy link
Contributor

adombeck commented Dec 9, 2024

Steps to reproduce:

  1. Ensure authd is installed
  2. Ensure authd is configured to use the broker
    cat /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
    
  3. Ensure authd-msentraid is not installed
    sudo snap remove authd-msentraid
    
  4. Try to log in via the Microsoft Entra ID in GDM
  5. Observe how the login fails without any user-visible error message

authd version

authd	0.3.7

authd-msentraid broker version

name:      authd-msentraid
summary:   MSEntra ID broker for authd
publisher: Canonical**
store-url: https://snapcraft.io/authd-msentraid
license:   GPL-3.0-only
description: |
  This is the MS Entra ID broker snap for authd  to provide MS Entra ID OIDC
  based authentication on Ubuntu with authd.
snap-id: vS3oJLMss6lgWwoFcPqYDUA2HB20I1Dc
channels:
  0.x/stable:    0.1+267a15c.f272cc1 2024-12-10 (89) 18MB -
  0.x/candidate: ^                                        
  0.x/beta:      ^                                        
  0.x/edge:      0.1+548e9e1.d4248d8 2024-12-10 (91) 18MB -

gnome-shell version

gnome-shell:
  Installed: 46.3.1-1ubuntu1~24.04.1authd4
  Candidate: 46.3.1-1ubuntu1~24.04.1authd4
  Version table:
 *** 46.3.1-1ubuntu1~24.04.1authd4 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.1authd2 500
        500 https://ppa.launchpadcontent.net/ubuntu-enterprise-desktop/authd/ubuntu noble/main amd64 Packages
     46.0-0ubuntu6~24.04.5 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

[93768.512634] ubuntu systemd[1]: Starting authd.service - Authd daemon service...
[93768.538796] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Verbosity: 2
[93768.538796] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Building authd object
[93768.539306] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Building broker detection
[93768.539741] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Auto-detecting brokers
[93768.539836] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Loading broker from "/etc/authd/brokers.d/msentraid.conf"
[93768.539836] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Dbus broker configuration at "/etc/authd/brokers.d/msentraid.conf"
[93768.539940] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Creating user manager with config: {UIDMin:1000000000 UIDMax:1999999999 GIDMin:1000000000 GIDMax:1999999999}
[93768.543061] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Cleaning up orphaned user records
[93768.545820] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Done cleaning up orphaned user records
[93768.545820] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Building new GRPC NSS service
[93768.545820] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Building new GRPC PAM service
[93768.545820] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Building new daemon
[93768.545820] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Use socket activation
[93768.546684] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Registering GRPC services
[93768.546684] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Starting to serve requests on /run/authd.sock
[93768.546684] ubuntu authd[55400]: 2024/12/13 16:22:56 DEBUG Ready state sent to systemd
[93768.546684] ubuntu authd[55400]: 2024/12/13 16:22:56 INFO Serving GRPC requests on /run/authd.sock
[93768.546808] ubuntu systemd[1]: Started authd.service - Authd daemon service.
[93813.874374] ubuntu systemd[1]: Stopping snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid...
[93813.874952] ubuntu authd-msentraid.authd-msentraid[54919]: time=2024-12-13T16:23:41.480+01:00 level=INFO msg="Stopping daemon requested."
[93813.879428] ubuntu systemd[1]: snap.authd-msentraid.authd-msentraid.service: Deactivated successfully.
[93813.879737] ubuntu systemd[1]: Stopped snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid.
[93814.351075] ubuntu authd[55400]: 2024/12/13 16:23:41 WARN rpc error: code = NotFound desc =
[93814.860767] ubuntu authd[55400]: 2024/12/13 16:23:42 WARN rpc error: code = NotFound desc =
[93831.862045] ubuntu authd[55400]: 2024/12/13 16:23:59 WARN can't start authentication transaction: couldn't connect to broker "Microsoft Entra ID". Is it running?
[93835.966787] ubuntu gdm-authd][56519]: gkr-pam: unlocked login keyring

authd broker configuration

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

# This section is used by authd to identify and communicate with the broker.
# It should not be edited.
[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

cat: /var/snap/authd-msentraid/current/broker.conf: No such file or directory
@adombeck adombeck added bug Something isn't working jira labels Dec 9, 2024
@3v1n0
Copy link
Collaborator

3v1n0 commented Dec 12, 2024

Is this happening with the shell from edge channel right?

@adombeck
Copy link
Contributor Author

Is this happening with the shell from edge channel right?

right. I added the system information and logs to the issue description.

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

2 participants