Summary: | Doesn't ask for shutdown password when using XDMCP, doesn't shutdown, just disconnects | ||
---|---|---|---|
Product: | [Unmaintained] kdm | Reporter: | Christian Spitzlay <cmueller> |
Component: | general | Assignee: | kdm bugs tracker <kdm-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Christian Spitzlay
2005-04-20 00:44:04 UTC
heh, indeed, very interesting effect ... the "remote login" mode runs the new X server with the -once option. consequently the display will not "return" to the client to ask for the root password. it might turn out to be pretty hard to fix it. whether we want this type of remote shutdown at all is discussed in another bug. Would it be possible to hide the shutdown and restart options from the KDE session logout dialog in the case of remote login with required password? This would remove the surprising behaviour. In order to shutdown box (B) one could still reconnect and choose shutdown from the kdm login screen. OTOH a user might ask: "What does the fact that I require a password have to do with the question of whether the shutdown option is displayed or not?" > Would it be possible [...]
>
nope. the remote kdm cannot know how the connecting X server was started - and for X servers started manually without -once things work as expected.
the solution lies in not disconnecting from the server totally, so it does not exit. this means moving the initial connection from the display subdaemon to the master daemon. this might happen as a side effect of making kdm work with ill-behaved pam modules.
SVN commit 735053 by ossi: when the user session requested a shutdown that needs confirmation or a password, don't put the dialog at the start of the next kdm session (and thus reset/disconnect the x server in between), but do it in the current kdm session after the user session exits. BUG: 104249 M +46 -28 backend/dm.c M +1 -0 backend/dm.h M +1 -0 backend/greet.h M +12 -13 backend/session.c M +4 -2 kfrontend/kgapp.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=735053 |