LightDM + LDAP accounts hang if username is preceded with whitespace

Bug #915251 reported by Harald Hannelius
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nss_ldap
New
Undecided
Unassigned
unity-greeter (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

This might affect PAM and/or nslcd instead, but lightdm should be able to cope with it.

We have our users in an OpenLDAP directory, and I have disabled the user list from lightdm. Some people seem to have the habit of waking the monitor by pressing the spacebar, thus entering their username with a preceding whitespace.

I have a line like this in syslog;

nslcd[2624]: [ac3ac4] username changed from " haneliuh" to "haneliuh"

The expected behaviour would be to just reject the login attempt and return back to the login windows. Instead, lightdm now just hangs. If one changes to a text console and back the lightdm login windows remains all light grey.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: lightdm 1.0.6-0ubuntu1.2
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Jan 12 12:45:45 2012
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lightdm
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.lightdm.users.conf: 2011-11-07T15:42:48
mtime.conffile..etc.pam.d.lightdm: 2011-11-29T14:16:59.873130

Revision history for this message
Harald Hannelius (harald-arcada) wrote :
Revision history for this message
Harald Hannelius (harald-arcada) wrote :

A freshly installed xubuntu 11.10 with updates authenticating only locally doesn't experience this behaviour. This leads me to believe that the real culprit in the drama is nslcd.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

I've reassigned this to unity greeter. It seems reasonable for it to assume usernames don't start with whitespace so they can be trimmed. You can also find more information about authentication in /var/log/lightdm/lightdm.log.

affects: lightdm (Ubuntu) → unity-greeter (Ubuntu)
Changed in unity-greeter (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Changed in unity-greeter:
status: New → Triaged
importance: Undecided → Wishlist
Changed in unity-greeter (Ubuntu):
importance: Low → Wishlist
Revision history for this message
Robert Ancell (robert-ancell) wrote :

I also suspect any blocking is done inside PAM so it's probably not lightdm/unity-greeters fault for the unresponsiveness, but checking the log will tell more.

no longer affects: unity-greeter
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.