Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
projects
:
virtualization
>
rhevm-guest-agent
> 0016-Fix-SSO-on-RHEL6.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0016-Fix-SSO-on-RHEL6.patch of Package rhevm-guest-agent
From c53b4d8f00f5f7b99b6b7993f934a70241dde0ec Mon Sep 17 00:00:00 2001 From: Vinzenz Feenstra <vfeenstr@redhat.com> Date: Wed, 28 May 2014 16:14:02 +0200 Subject: [PATCH] Fix SSO on RHEL6 The new pam implementation needs the ask_secret to be answered as well. Change-Id: I21f5da545d4fa26f816c4e25c88eccb09d4cfd56 Bug-Url: https://bugzilla.redhat.com/1102095 Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com> --- gdm-plugin/gdm-ovirtcred-extension.c | 6 ++++++ gdm2-plugin/gdm-ovirtcred-extension.c | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gdm-plugin/gdm-ovirtcred-extension.c b/gdm-plugin/gdm-ovirtcred-extension.c index bf8af7b..9878bd6 100644 --- a/gdm-plugin/gdm-ovirtcred-extension.c +++ b/gdm-plugin/gdm-ovirtcred-extension.c @@ -251,7 +251,13 @@ static void gdm_ovirtcred_extension_ask_secret (GdmLoginExtension *login_extension, const char *message) { + GdmOVirtCredExtension *extension = GDM_OVIRTCRED_EXTENSION (login_extension); + + if (g_strcmp0 ("Token?", message) != 0) { + return; + } + _gdm_login_extension_emit_answer (login_extension, extension->priv->token); } static void diff --git a/gdm2-plugin/gdm-ovirtcred-extension.c b/gdm2-plugin/gdm-ovirtcred-extension.c index e1a3ce2..ee5493d 100644 --- a/gdm2-plugin/gdm-ovirtcred-extension.c +++ b/gdm2-plugin/gdm-ovirtcred-extension.c @@ -193,7 +193,15 @@ static void gdm_ovirtcred_extension_ask_secret (GdmConversation *conversation, const char *message) { - + GdmOVirtCredExtension *extension = GDM_OVIRTCRED_EXTENSION (conversation); + + if (g_strcmp0 ("Token?", message) != 0) { + return; + } + + if (extension->priv->token) { + gdm_ovirtcred_extension_request_answer (GDM_CONVERSATION (extension)); + } } static void -- 1.9.0