From 83564b43e3b8194b89e0fb8547a968e4f2ff022b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 11 May 2007 13:33:37 +0000 Subject: r22800: Add GPO_SID_TOKEN and an LDAP function to get tokensids from the tokenGroup attribute. Guenther (This used to be commit e4e8f840605dfdf92ca60cc8fc6a4c85336565fb) --- source3/include/ads_protos.h | 9 +++++++-- source3/include/gpo.h | 7 +++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'source3/include') diff --git a/source3/include/ads_protos.h b/source3/include/ads_protos.h index 2565e2ca9b..0cd7c2cac0 100644 --- a/source3/include/ads_protos.h +++ b/source3/include/ads_protos.h @@ -110,5 +110,10 @@ ADS_STATUS ads_do_search_all_sd_flags(ADS_STRUCT *ads, const char *bind_path, int scope, const char *expr, const char **attrs, uint32 sd_flags, LDAPMessage **res); - - +ADS_STATUS ads_get_tokensids(ADS_STRUCT *ads, + TALLOC_CTX *mem_ctx, + const char *dn, + DOM_SID *user_sid, + DOM_SID *primary_group_sid, + DOM_SID **sids, + size_t *num_sids); diff --git a/source3/include/gpo.h b/source3/include/gpo.h index a13c81b554..431702e300 100644 --- a/source3/include/gpo.h +++ b/source3/include/gpo.h @@ -94,3 +94,10 @@ struct GP_EXT { #define GPO_CACHE_DIR "gpo_cache" #define GPT_INI "GPT.INI" + +struct GPO_SID_TOKEN { + DOM_SID object_sid; + DOM_SID primary_group_sid; + size_t num_token_sids; + DOM_SID *token_sids; +}; -- cgit