dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0100-IPA-make-get_object_from_cache-public.patch

905b4d
From 0f15a623392fa66832e8cbbc8e9293830e1fb0f8 Mon Sep 17 00:00:00 2001
905b4d
From: Sumit Bose <sbose@redhat.com>
905b4d
Date: Fri, 7 Nov 2014 21:34:55 +0100
905b4d
Subject: [PATCH 100/104] IPA: make get_object_from_cache() public
905b4d
905b4d
Related to https://fedorahosted.org/sssd/ticket/2481
905b4d
905b4d
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
905b4d
---
905b4d
 src/providers/ipa/ipa_id.h            | 5 +++++
905b4d
 src/providers/ipa/ipa_subdomains_id.c | 9 +++++----
905b4d
 2 files changed, 10 insertions(+), 4 deletions(-)
905b4d
905b4d
diff --git a/src/providers/ipa/ipa_id.h b/src/providers/ipa/ipa_id.h
905b4d
index 890d00d49097555acce62ecc5fa300c71c6c9981..9d219f281847df0ba4ac24061e598eb6915f9c38 100644
905b4d
--- a/src/providers/ipa/ipa_id.h
905b4d
+++ b/src/providers/ipa/ipa_id.h
905b4d
@@ -109,4 +109,9 @@ errno_t ipa_subdomain_account_recv(struct tevent_req *req, int *dp_error_out);
905b4d
 
905b4d
 errno_t split_ipa_anchor(TALLOC_CTX *mem_ctx, const char *anchor,
905b4d
                          char **_anchor_domain, char **_ipa_uuid);
905b4d
+
905b4d
+errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
905b4d
+                              struct sss_domain_info *dom,
905b4d
+                              struct be_acct_req *ar,
905b4d
+                              struct ldb_message **_msg);
905b4d
 #endif
905b4d
diff --git a/src/providers/ipa/ipa_subdomains_id.c b/src/providers/ipa/ipa_subdomains_id.c
905b4d
index 0a1c4c17eed37b2eb12a8c758e49fc17c3b642b5..891fc336483b507fd284b0c84b118534910ed9fc 100644
905b4d
--- a/src/providers/ipa/ipa_subdomains_id.c
905b4d
+++ b/src/providers/ipa/ipa_subdomains_id.c
905b4d
@@ -848,10 +848,10 @@ done:
905b4d
     return ret;
905b4d
 }
905b4d
 
905b4d
-static errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
905b4d
-                                     struct sss_domain_info *dom,
905b4d
-                                     struct be_acct_req *ar,
905b4d
-                                     struct ldb_message **_msg)
905b4d
+errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
905b4d
+                              struct sss_domain_info *dom,
905b4d
+                              struct be_acct_req *ar,
905b4d
+                              struct ldb_message **_msg)
905b4d
 {
905b4d
     errno_t ret;
905b4d
     uint32_t id;
905b4d
@@ -861,6 +861,7 @@ static errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
905b4d
                             SYSDB_UIDNUM,
905b4d
                             SYSDB_SID_STR,
905b4d
                             SYSDB_OBJECTCLASS,
905b4d
+                            SYSDB_UUID,
905b4d
                             NULL };
905b4d
     char *name;
905b4d
 
905b4d
-- 
905b4d
1.9.3
905b4d