[gdm-list] RemoteAutologin for gdm > 2.20



Hi


I'm trying to make a patch to enable remote autologin (XDMCP) in new GDM

I use a script to return user based on DISPLAY with pipes:

TimedLogin=/etc/gdm/gdm-autologin|


In gdm_xdmcp_display_get_timed_login_details() username and enable are
hardcoded to "" (empty) and FALSE.


If I copy the code from gdm-display.c


Index: gdm-2.30.2.is.2.30.2/daemon/gdm-xdmcp-display.c
===================================================================
--- daemon/gdm-xdmcp-display.c	2010-07-21 16:16:14.000000000 +0200
+++ daemon/gdm-xdmcp-display.c	2010-07-21 18:23:21.000000000 +0200
@@ -187,9 +188,21 @@
                                            char      **usernamep,
                                            int        *delayp)
 {
-        *enabledp = FALSE;
-        *usernamep = g_strdup ("");
-        *delayp = 0;
+        /* FIXME read key security/AllowRemoteAutoLogin */
+        /* add remote autologin support */
+        GDM_DISPLAY_GET_CLASS (display)->get_timed_login_details
(display, enabledp, usernamep, delayp);
+
+        
+        if ( ! *usernamep ) {
+                *usernamep = g_strdup ("");
+                *enabledp = FALSE;
+                *delayp = 0;
+        }
 }


But this don't work because GdmXdmcpDisplay class don't register a DBUS
connection


gdm-simple-slave[6980]: DEBUG(+): GdmSlave: Requesting user
authorization
gdm-simple-slave[6980]: CRITICAL: dbus_g_proxy_call: assertion
`DBUS_IS_G_PROXY (proxy)' failed
gdm-simple-slave[6980]: WARNING: Failed to add user authorization

And gives me a backtrace.

I will try to call autologin script without dbus.


Remote Autologins works ok in older versions and in > 2.20 not.



Can anyone help me?

-- 
Greetings
--
http://mariodebian.com

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]