From 12bfb1b3c9683ccc9972749772a6e6be495c0769 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 26 Nov 2012 12:33:11 +0100 Subject: Add find_domain_by_id() Currently domains can only be searched by name in the global domain list. To make it easier to find the domain for a given SID find_domain_by_id() which returns a pointer to the domain or subdomain entry in the global domain list if a matching id was found. --- src/responder/pac/pacsrv.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/responder/pac/pacsrv.h') diff --git a/src/responder/pac/pacsrv.h b/src/responder/pac/pacsrv.h index 8cd49284..4d3a3164 100644 --- a/src/responder/pac/pacsrv.h +++ b/src/responder/pac/pacsrv.h @@ -125,4 +125,7 @@ errno_t diff_gid_lists(TALLOC_CTX *mem_ctx, struct pac_grp **_add_gid_list, size_t *_del_gid_num, struct grp_info ***_del_gid_list); + +struct sss_domain_info *find_domain_by_id(struct sss_domain_info *domains, + const char *id_str); #endif /* __PACSRV_H__ */ -- cgit