After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 624958 - Remote TimedLogin disabled in gdm > 2.20
Remote TimedLogin disabled in gdm > 2.20
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-21 18:31 UTC by mariodebian
Modified: 2014-08-20 15:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Enable remote TimedLogin in new GDM (624 bytes, patch)
2010-07-21 19:33 UTC, mariodebian
none Details | Review
New patch that reads security/AllowRemoteAutoLogin (2.17 KB, patch)
2010-09-20 10:47 UTC, mariodebian
none Details | Review
xdmcp: Allow timed/autologin on remote displays (9.17 KB, patch)
2014-08-20 15:07 UTC, Ray Strode [halfline]
committed Details | Review

Description mariodebian 2010-07-21 18:31:54 UTC
In older version something like this:

TimedLogin=/etc/gdm/gdm-autologin-script|

Call this script and (based on DISPLAY) return a username string for autologin.

In newer versions daemon/gdm-xdmcp-display.c hardcode empty user and disable autologin:


 static void
 gdm_xdmcp_display_get_timed_login_details (GdmDisplay *display,
                                            gboolean   *enabledp,
                                            char      **usernamep,
                                            int        *delayp)
 {
      
         *enabledp = FALSE;
         *usernamep = g_strdup ("");
         *delayp = 0;


daemon/gdm-xdmcp-display.c don't init dbus connection adn something like this:

GDM_DISPLAY_GET_CLASS (display)->get_timed_login_details (display, enabledp, usernamep, delayp);

don't work.


Please add support for remote TimedLogin again.
Comment 1 mariodebian 2010-07-21 19:33:30 UTC
Created attachment 166324 [details] [review]
Enable remote TimedLogin in new GDM

I propose this simple patch.

In older versions we need a key in config:

[security]
AllowRemoteAutoLogin=true

In gdm > 2.20 this key is no longer avalaible, please re-add it.
Comment 2 mariodebian 2010-09-20 10:47:20 UTC
Created attachment 170647 [details] [review]
New patch that reads security/AllowRemoteAutoLogin

This patch create security/AllowRemoteAutoLogin key (deprecated in >= 2.20) and read it in remote TimedLogin.
Comment 3 karol 2014-08-13 07:00:31 UTC
Hello All,

Are there any chances to fix this regression bug? We are independent software vendor provider (SCADA/DMS and industry software where industrial automation is used) and use CentOS 5 with GDM version GDM 2.16.0 and RemoteAutoLogin works fine. Now we are trying to migrate to modern version of Centos: v6.0 (and in near future 7) where GDM is in version 2.30.4 and now is impossible for us because of this bug. Keeping the old CentOS 5 is no option for us because of GCC/G++ improvements.

This same bug also exists in Debian bugzilla:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597504

and as I see mariodebian@gmail.com proposed a patch for resolving this issue.
Regards, Karol Szkudlarek
Comment 4 Ray Strode [halfline] 2014-08-20 15:07:35 UTC
Created attachment 283974 [details] [review]
xdmcp: Allow timed/autologin on remote displays

This commit readds the  security/AllowRemoteAutoLogin key
(deprecated in >= 2.20) and so XDMCP setups can be configured to use
autologin and timedlogin.
Comment 5 Ray Strode [halfline] 2014-08-20 15:07:55 UTC
Attachment 283974 [details] pushed as 9ea772c - xdmcp: Allow timed/autologin on remote displays