[gnome-online-accounts/wip/rishi/owncloud-gssapi: 4/9] kerberos: Skip EnsureCredentials if the account is disabled
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/owncloud-gssapi: 4/9] kerberos: Skip EnsureCredentials if the account is disabled
- Date: Sat, 20 Feb 2016 19:26:17 +0000 (UTC)
commit a0045b460b5d1b42aad61f07bc48071e5dd087b8
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Feb 16 18:26:46 2016 +0100
kerberos: Skip EnsureCredentials if the account is disabled
https://bugzilla.gnome.org/show_bug.cgi?id=762155
src/goabackend/goakerberosprovider.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index fafa64f..3c1331c 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -1357,12 +1357,23 @@ ensure_credentials_sync (GoaProvider *provider,
{
GoaIdentityServiceIdentity *identity = NULL;
GoaAccount *account = NULL;
+ GoaTicketing *ticketing = NULL;
const char *identifier;
gint64 timestamp;
GDateTime *now, *expiration_time;
GTimeSpan time_span;
gboolean credentials_ensured = FALSE;
+ ticketing = goa_object_get_ticketing (object);
+ if (ticketing == NULL)
+ {
+ g_set_error (error,
+ GOA_ERROR,
+ GOA_ERROR_NOT_SUPPORTED,
+ _("Ticketing is disabled for account"));
+ return FALSE;
+ }
+
account = goa_object_get_account (object);
identifier = goa_account_get_identity (account);
@@ -1436,6 +1447,7 @@ ensure_credentials_sync (GoaProvider *provider,
out:
g_clear_object (&account);
g_clear_object (&identity);
+ g_clear_object (&ticketing);
g_mutex_unlock (&identity_manager_mutex);
return credentials_ensured;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]