summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-04 13:49:18 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-04 18:16:22 +0100
commit1f371cdbe5a5c2f02ca82a492530fc00b67960d4 (patch)
tree6369e0c502f53ad78b36b5790b650f92cc17367e /source4
parent7587665d928b3297259950ccad0947c192360765 (diff)
downloadsamba-1f371cdbe5a5c2f02ca82a492530fc00b67960d4.tar.gz
samba-1f371cdbe5a5c2f02ca82a492530fc00b67960d4.tar.bz2
samba-1f371cdbe5a5c2f02ca82a492530fc00b67960d4.zip
s4:sam.c - make "authsam_expand_nested_groups" public
This is needed by the "tokenGroups" work in the operational LDB module.
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/auth.h6
-rw-r--r--source4/auth/sam.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/source4/auth/auth.h b/source4/auth/auth.h
index b0a907f624..bbdbbc3127 100644
--- a/source4/auth/auth.h
+++ b/source4/auth/auth.h
@@ -237,6 +237,12 @@ NTSTATUS authsam_account_ok(TALLOC_CTX *mem_ctx,
bool allow_domain_trust,
bool password_change);
struct auth_session_info *system_session(struct loadparm_context *lp_ctx);
+NTSTATUS authsam_expand_nested_groups(struct ldb_context *sam_ctx,
+ const struct dom_sid *sid,
+ const bool only_childs,
+ TALLOC_CTX *res_sids_ctx,
+ struct dom_sid ***res_sids,
+ unsigned int *num_res_sids);
NTSTATUS authsam_make_server_info(TALLOC_CTX *mem_ctx, struct ldb_context *sam_ctx,
const char *netbios_name,
const char *domain_name,
diff --git a/source4/auth/sam.c b/source4/auth/sam.c
index 7dbe6d76e6..20efc3684a 100644
--- a/source4/auth/sam.c
+++ b/source4/auth/sam.c
@@ -297,7 +297,7 @@ static bool sids_contains_sid(const struct dom_sid **sids,
*
* At the beginning "res_sids" should reference to a NULL pointer.
*/
-static NTSTATUS authsam_expand_nested_groups(struct ldb_context *sam_ctx,
+_PUBLIC_ NTSTATUS authsam_expand_nested_groups(struct ldb_context *sam_ctx,
const struct dom_sid *sid, const bool only_childs,
TALLOC_CTX *res_sids_ctx, struct dom_sid ***res_sids,
unsigned int *num_res_sids)