Commit 9ea772c0 authored by Mario Izquierdo Rodríguez's avatar Mario Izquierdo Rodríguez Committed by Ray Strode

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.

https://bugzilla.gnome.org/show_bug.cgi?id=624958
parent 63a13be5
......@@ -41,6 +41,7 @@ G_BEGIN_DECLS
#define GDM_KEY_INCLUDE_ALL "greeter/IncludeAll"
#define GDM_KEY_DISALLOW_TCP "security/DisallowTCP"
#define GDM_KEY_ALLOW_REMOTE_AUTOLOGIN "security/AllowRemoteAutoLogin"
#define GDM_KEY_XDMCP_ENABLE "xdmcp/Enable"
#define GDM_KEY_SHOW_LOCAL_GREETER "xdmcp/ShowLocalGreeter"
......
......@@ -41,6 +41,10 @@
#include "gdm-common.h"
#include "gdm-address.h"
#include "gdm-settings.h"
#include "gdm-settings-direct.h"
#include "gdm-settings-keys.h"
#define GDM_XDMCP_DISPLAY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GDM_TYPE_XDMCP_DISPLAY, GdmXdmcpDisplayPrivate))
struct GdmXdmcpDisplayPrivate
......@@ -190,6 +194,14 @@ gdm_xdmcp_display_get_timed_login_details (GdmDisplay *display,
*enabledp = FALSE;
*usernamep = g_strdup ("");
*delayp = 0;
gboolean allow_remote_autologin;
allow_remote_autologin = FALSE;
gdm_settings_direct_get_boolean (GDM_KEY_ALLOW_REMOTE_AUTOLOGIN, &allow_remote_autologin);
if ( allow_remote_autologin ) {
GDM_DISPLAY_CLASS (gdm_xdmcp_display_parent_class)->get_timed_login_details (display, enabledp, usernamep, delayp);
}
}
static void
......
......@@ -52,6 +52,11 @@
<signature>b</signature>
<default>true</default>
</schema>
<schema>
<key>security/AllowRemoteAutoLogin</key>
<signature>b</signature>
<default>false</default>
</schema>
<schema>
<key>debug/Enable</key>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment