gdm can't open session for ldap users with usernames that begin with a number

Bug #1881812 reported by tylerecouture
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdm
Fix Released
Unknown
systemd
Fix Released
Unknown
systemd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Description: Ubuntu 20.04 LTS

with ubuntu-desktop and libnss-ldapd

Trying to log in to the desktop environment when the username (e.g 9912345) begins with a number results in a black screen, and then quits back to the log in screen.

Here is the error:
`...gdm-password][5010]: pam_systemd(gdm-password:session): Failed to get user record: Invalid argument`

However, these users can log-in via ssh, and via TTY without issue.

This error does not occur if I log in with other users, without a number (e.g. test.user)

Also, the error does not occur if I switch to LightDM. With LightDM, a username such as 9912345 can login to the desktop desktop environment.

$ apt-cache policy gdm3
gdm3:
  Installed: 3.34.1-1ubuntu1
  Candidate: 3.34.1-1ubuntu1
  Version table:
 *** 3.34.1-1ubuntu1 500
        500 http://ca.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

affects: puppet (Ubuntu) → gdm3 (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you perhaps also report it upstream on

https://gitlab.gnome.org/GNOME/gdm/issues/ ?

Revision history for this message
tylerecouture (tylerecouture) wrote :
Revision history for this message
tylerecouture (tylerecouture) wrote :
Revision history for this message
tylerecouture (tylerecouture) wrote :

FYI this appears to have been fixed in systemd: https://github.com/systemd/systemd/pull/15201

tags: added: fixed-upstream
tags: added: focal
no longer affects: gdm3 (Ubuntu)
Changed in systemd (Ubuntu):
status: New → Confirmed
Changed in systemd:
status: Unknown → Fix Released
Revision history for this message
Balint Reczey (rbalint) wrote :

It is fixed in the systemd package since 245.4-4ubuntu1.

Changed in systemd (Ubuntu):
status: Confirmed → Fix Released
Changed in gdm:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.