Bug 39858 - second login bypasses password screen
Summary: second login bypasses password screen
Status: CLOSED FIXED
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-27 10:18 UTC by alan
Modified: 2008-05-19 17:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alan 2002-03-27 10:06:51 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kdm
Version:           KDE 3.0.0 CVS/CVSup/Snapshot
Severity:          normal
Installed from:    Compiled sources
Compiler:          gcc 2.95
OS:                Linux
OS/Compiler notes: Debian Unstable

I have KDM set up to bypass the login screen on first login and go straight to me as user. (AutoLoginEnable=true) 

Sometimes (about 1 in 3 ) when I logout I am auto logged in again instead of being shown the kdm login screen.

Although I have reported this bug under KDM I am not sure it is this package.  When it goes wrong I get the NVIDIA logo from the NVIDIA drivers come up and the timestamp on the /var/log/XFree ... log file is the timestamp of the time of logout/relogin. When it works correctly I don't get the NVIDIA logo. In otherwords the XServer is restarting. Checking Syslog I get

Mar 27 09:38:42 kanger kdm[552]: Server for display :0 terminated unexpectedly

Which sort of confirms this. (the time was exactly the time of logout)


 

(Submitted via bugs.kde.org)
Comment 1 Oswald Buddenhagen 2002-03-27 11:19:51 UTC
this is an nvidia driver problem. your x-server crashes so the
auto-re-login feature jumps in and restarts the session (kdm does not
know that you tried to logout at this time). use a non-broken driver or
disable "automatically log in again after x server crash".

greetings
Comment 2 Oswald Buddenhagen 2003-11-19 01:02:03 UTC
for the record ...

> don't laugh ... ;)
> i'm cleaning up my kdm mailbox after the recent larger changes, so i
> stumbled over your report.
> concluding from the log you sent me ages ago i think the bug was
> genuine, in fact. i'm also hopeful that i fixed it meanwhile, possibly
> with my recent changes (i touched the relevant code and wondered how it
> could have worked at all :). so, are you willing & able to test how
> things work with kde 3.2 beta1 (or current cvs head, fwiw)?
>
Tested it - works fine now.  Bug is gone
Comment 3 Oswald Buddenhagen 2003-11-19 04:18:14 UTC
Subject: kdebase/kdm/backend

CVS commit by ossi: 

don't auto-login again after an X server crash. if the user wants that,
he can explicitly enable auto-re-login independently of auto-login.

it might look silly to disagree with a confirmation that a bug is gone,
but i'm a pedant and the bug was evidently still there. :)
CCMAIL: 39858@bugs.kde.org


  M +1 -1      session.c   1.85


--- kdebase/kdm/backend/session.c  #1.84:1.85
@@ -136,5 +136,5 @@ AutoLogon ()
         newdmrc = td->hstent->nargs;
         td->hstent->nargs = 0;
-    } else if (*td->autoUser && !(tdiff <= 0 && td->hstent->goodExit)) {
+    } else if (*td->autoUser && tdiff > 0) {
         StrDup (&curuser, td->autoUser);
         StrDup (&curpass, td->autoPass);