summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-11-07 21:34:55 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-11-20 10:52:54 +0100
commitf1436acde39da5f1400a51153cf7fd370682a4c8 (patch)
tree6b3a9ef29443386db0bdaff9299ca5ca88cdfc0c
parent1c82a31a254c2fca6dfa3e3b52986b75221d8742 (diff)
downloadsssd-f1436acde39da5f1400a51153cf7fd370682a4c8.zip
sssd-f1436acde39da5f1400a51153cf7fd370682a4c8.tar.gz
sssd-f1436acde39da5f1400a51153cf7fd370682a4c8.tar.xz
IPA: make get_object_from_cache() public
Related to https://fedorahosted.org/sssd/ticket/2481 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r--src/providers/ipa/ipa_id.h5
-rw-r--r--src/providers/ipa/ipa_subdomains_id.c9
2 files changed, 10 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_id.h b/src/providers/ipa/ipa_id.h
index 890d00d..9d219f2 100644
--- a/src/providers/ipa/ipa_id.h
+++ b/src/providers/ipa/ipa_id.h
@@ -109,4 +109,9 @@ errno_t ipa_subdomain_account_recv(struct tevent_req *req, int *dp_error_out);
errno_t split_ipa_anchor(TALLOC_CTX *mem_ctx, const char *anchor,
char **_anchor_domain, char **_ipa_uuid);
+
+errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
+ struct sss_domain_info *dom,
+ struct be_acct_req *ar,
+ struct ldb_message **_msg);
#endif
diff --git a/src/providers/ipa/ipa_subdomains_id.c b/src/providers/ipa/ipa_subdomains_id.c
index 0d00d09..dd1eae1 100644
--- a/src/providers/ipa/ipa_subdomains_id.c
+++ b/src/providers/ipa/ipa_subdomains_id.c
@@ -848,10 +848,10 @@ done:
return ret;
}
-static errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
- struct sss_domain_info *dom,
- struct be_acct_req *ar,
- struct ldb_message **_msg)
+errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
+ struct sss_domain_info *dom,
+ struct be_acct_req *ar,
+ struct ldb_message **_msg)
{
errno_t ret;
uint32_t id;
@@ -861,6 +861,7 @@ static errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
SYSDB_UIDNUM,
SYSDB_SID_STR,
SYSDB_OBJECTCLASS,
+ SYSDB_UUID,
NULL };
char *name;