summaryrefslogtreecommitdiffstats
path: root/src/responder/pac/pacsrv.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-11-26 12:33:11 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-01-08 14:42:56 +0100
commit12bfb1b3c9683ccc9972749772a6e6be495c0769 (patch)
tree3a39c3acfce04fff47b4d4a01a65bae3a8206f27 /src/responder/pac/pacsrv.h
parent8d371b14623e1dced3ddc885ff7d8cd2cbf50604 (diff)
downloadsssd-12bfb1b3c9683ccc9972749772a6e6be495c0769.tar.gz
sssd-12bfb1b3c9683ccc9972749772a6e6be495c0769.tar.xz
sssd-12bfb1b3c9683ccc9972749772a6e6be495c0769.zip
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.
Diffstat (limited to 'src/responder/pac/pacsrv.h')
-rw-r--r--src/responder/pac/pacsrv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/responder/pac/pacsrv.h b/src/responder/pac/pacsrv.h
index 8cd492842..4d3a31643 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__ */