Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200709 - x11-apps/xdm-1.1.4: xlogin*allowNullPasswd: true doesn't work until the second login attempt
Summary: x11-apps/xdm-1.1.4: xlogin*allowNullPasswd: true doesn't work until the secon...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-29 01:25 UTC by Shawn Rutledge
Modified: 2007-12-01 05:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Rutledge 2007-11-29 01:25:58 UTC
I tried adding this line to /etc/X11/xdm/XResources:

xlogin*allowNullPasswd: true

in order to allow a user with no passwd to log in.  (First I verified that the user can log in from the console, and yes, indeed it does not ask for a password.)  Then I restarted xdm and tried to log in.  The first time, it asks for a password, I leave the field empty, and fail to log in.  The second time however, after having failed to log in, I simply type the same username again, and it does not prompt for a password, but immediately logs in, as it should have done the first time.  If I log out and get back to the xdm prompt, the whole sequence can be repeated (user, empty password, fail; username, login successful).



Reproducible: Always

Steps to Reproduce:
1.add to /etc/X11/xdm/XResources
2./etc/init.d/xdm restart
3.type the username
4.for the password field, just hit enter
5.type the username
6.login successful

Actual Results:  
must try to log in twice before it works

Expected Results:  
should log in the first time, with no password

The line in /etc/shadow for this user looks like this:
s::13846:0:99999:7:::

Portage 2.1.3.19 default-linux/x86/2007.0, gcc 4.1.2, glibc 2.6.1-r0, 2.6.22-gentoo-r9
use flags for xdm: ipv6 pam
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-29 08:13:34 UTC
Try w/ 1.1.6 and report back, please.
Comment 2 Shawn Rutledge 2007-11-29 21:16:14 UTC
(In reply to comment #1)
> Try w/ 1.1.6 and report back, please.

I just emerged 1.1.6 and restarted xdm.  The behavior is the same.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2007-11-30 06:36:34 UTC
This appears likely to be an upstream Xorg bug. Please search bugs.freedesktop.org (xorg product) for your issue, and file a new bug if you do not find it. Next, please post the URL of your bug here so everyone can track it. Finally, we can incorporate the fix into Gentoo once it is fixed upstream, if you reopen the bug at that point to let us know.
Comment 4 Shawn Rutledge 2007-11-30 08:37:42 UTC
see https://bugs.freedesktop.org/show_bug.cgi?id=13455