summaryrefslogtreecommitdiff
path: root/daemon/gdm-xdmcp-display.c
diff options
context:
space:
mode:
authorMario Izquierdo Rodríguez <mariodebian@gmail.com>2014-08-20 11:03:26 -0400
committerRay Strode <rstrode@redhat.com>2014-08-20 11:07:34 -0400
commit9ea772c04bc58e457e99d9bdfb458318189226c0 (patch)
tree883834f540fcef359620201b5a06ffceeae40eb2 /daemon/gdm-xdmcp-display.c
parent63a13be597e90085916b17fafa1ab542f12e63b7 (diff)
downloadgdm-9ea772c04bc58e457e99d9bdfb458318189226c0.tar.gz
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
Diffstat (limited to 'daemon/gdm-xdmcp-display.c')
-rw-r--r--daemon/gdm-xdmcp-display.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/daemon/gdm-xdmcp-display.c b/daemon/gdm-xdmcp-display.c
index a57840e7..41dd087f 100644
--- a/daemon/gdm-xdmcp-display.c
+++ b/daemon/gdm-xdmcp-display.c
@@ -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