Bug#597504: Remote TimedLogin disabled in gdm3

Mario Izquierdo (mariodebian) mariodebian at gmail.com
Mon Sep 20 09:29:32 UTC 2010


Package: gdm3
Version: 2.30.5-2
Severity: normal
Tags: patch


TimedLogin key only works on local $DISPLAY.

In gdm <= 2.20 we can use something like this:

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

This script based on $DISPLAY for example returns a username and GDM
do autologin stuff (local and remote).

In new GDM, daemon/gdm-xdmcp-display.c hardcode empty user and disable
autologin.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=624958


I attach a patch that enable it again.

The patch can be better if read security/AllowRemoteAutoLogin key
(deprecated in newest GDM).




-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gdm3 depends on:
ii  adduser                 3.112+nmu1       add and remove users and groups
ii  debconf [debconf-2.0]   1.5.35           Debian configuration management sy
ii  gconf2                  2.28.1-4         GNOME configuration database syste
ii  gnome-session [x-sessio 2.30.2-2         The GNOME Session Manager - GNOME 
ii  gnome-session-bin       2.30.2-2         The GNOME Session Manager - Minima
ii  gnome-terminal [x-termi 2.30.2-1         The GNOME terminal emulator applic
ii  kde-window-manager [x-w 4:4.4.5-3        the K window manager (KWin)
ii  konsole [x-terminal-emu 4:4.4.5-1        X terminal emulator
ii  libart-2.0-2            2.3.21-1         Library of functions for 2D graphi
ii  libatk1.0-0             1.30.0-1         The ATK accessibility toolkit
ii  libattr1                1:2.4.44-2       Extended attribute shared library
ii  libaudit0               1.7.13-1+b2      Dynamic library for security audit
ii  libbonobo2-0            2.24.3-1         Bonobo CORBA interfaces library
ii  libbonoboui2-0          2.24.3-1         The Bonobo UI library
ii  libc6                   2.11.2-6         Embedded GNU C Library: Shared lib
ii  libcairo2               1.8.10-6         The Cairo 2D vector graphics libra
ii  libcanberra-gtk0        0.24-1           Gtk+ helper for playing widget eve
ii  libcanberra0            0.24-1           a simple abstract interface for pl
ii  libdbus-1-3             1.2.24-3         simple interprocess messaging syst
ii  libdbus-glib-1-2        0.88-2           simple interprocess messaging syst
ii  libfontconfig1          2.8.0-2.1        generic font configuration library
ii  libfreetype6            2.4.2-2          FreeType 2 font engine, shared lib
ii  libgconf2-4             2.28.1-4         GNOME configuration database syste
ii  libglib2.0-0            2.24.2-1         The GLib library of C routines
ii  libgnome2-0             2.30.0-1         The GNOME library - runtime files
ii  libgnomecanvas2-0       2.30.1-1         A powerful object-oriented display
ii  libgtk2.0-0             2.20.1-1+b1      The GTK+ graphical user interface 
ii  liborbit2               1:2.14.18-0.1    libraries for ORBit2 - a CORBA ORB
ii  libpam-modules          1.1.1-6          Pluggable Authentication Modules f
ii  libpam-runtime          1.1.1-6          Runtime support for the PAM librar
ii  libpam0g                1.1.1-6          Pluggable Authentication Modules l
ii  libpanel-applet2-0      2.30.2-2         library for GNOME Panel applets
ii  libpango1.0-0           1.28.1-1         Layout and rendering of internatio
ii  libpolkit-gobject-1-0   0.96-3           PolicyKit Authorization API
ii  libpolkit-gtk-1-0       0.96-2           PolicyKit GTK+ API
ii  libpopt0                1.16-1           lib for parsing cmdline parameters
ii  librsvg2-common         2.26.3-1         SAX-based renderer library for SVG
ii  libselinux1             2.0.96-1         SELinux runtime shared libraries
ii  libupower-glib1         0.9.5-1+b1       abstraction for power management -
ii  libwrap0                7.6.q-19         Wietse Venema's TCP wrappers libra
ii  libx11-6                2:1.3.3-3        X11 client-side library
ii  libxau6                 1:1.0.6-1        X11 authorisation library
ii  libxdmcp6               1:1.0.3-2.1      X11 Display Manager Control Protoc
ii  libxklavier16           5.0-2            X Keyboard Extension high-level AP
ii  libxml2                 2.7.7.dfsg-4     GNOME XML library
ii  lsb-base                3.2-24           Linux Standard Base 3.2 init scrip
ii  metacity [x-window-mana 1:2.30.1-2       lightweight GTK+ window manager
ii  policykit-1-gnome       0.96-2           GNOME authentication agent for Pol
ii  terminator [x-terminal- 0.95-1           multiple GNOME terminals in one wi
ii  tilda [x-terminal-emula 0.09.6-2         terminal emulator with first perso
ii  twm [x-window-manager]  1:1.0.4-2        Tab window manager
ii  upower                  0.9.5-1+b1       abstraction for power management
ii  xfce4-session [x-sessio 4.6.2-2          Xfce4 Session Manager
ii  xfce4-terminal [x-termi 0.4.5-1          Xfce terminal emulator
ii  xfwm4 [x-window-manager 4.6.2-1          window manager of the Xfce project
ii  xterm [x-terminal-emula 261-1            X terminal emulator
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages gdm3 recommends:
pn  at-spi                        <none>     (no description available)
ii  gnome-icon-theme              2.30.3-1   GNOME Desktop icon theme
ii  gnome-power-manager           2.30.1-1   power management tool for the GNOM
ii  gnome-settings-daemon         2.30.2-1   daemon handling the GNOME session 
ii  x11-xkb-utils                 7.5+5      X11 XKB utilities
ii  xnest                         2:1.7.7-6  Nested X server
ii  xserver-xephyr                2:1.7.7-6  nested X server
ii  xserver-xorg                  1:7.5+7    the X.Org X server
ii  zenity                        2.30.0-1   Display graphical dialog boxes fro

Versions of packages gdm3 suggests:
pn  gnome-mag                     <none>     (no description available)
pn  gnome-orca                    <none>     (no description available)
pn  gok                           <none>     (no description available)
ii  libpam-gnome-keyring          2.30.3-1   PAM module to unlock the GNOME key
ii  metacity                      1:2.30.1-2 lightweight GTK+ window manager

-- Configuration Files:
/etc/gdm3/daemon.conf changed:
[daemon]
TimedLoginEnable=false
AutomaticLoginEnable=true
TimedLogin=mario
AutomaticLogin=mario
TimedLoginDelay=30
[security]
DisallowTCP=false
[xdmcp]
Enable=true
DisplaysPerHost=4
MaxPending=4
MaxSessions=16
MaxWait=30
MaxWaitIndirect=30
PingIntervalSeconds=60
[greeter]
[debug]
Enable=true


-- debconf information:
  shared/default-x-display-manager: gdm3
  gdm3/daemon_name: /usr/sbin/gdm3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enable_remote_timedlogin.diff
Type: text/x-diff
Size: 624 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20100920/61118089/attachment.diff>


More information about the pkg-gnome-maintainers mailing list