s4:sam.c - make "authsam_expand_nested_groups" public
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Thu, 4 Mar 2010 12:49:18 +0000 (13:49 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Thu, 4 Mar 2010 17:16:22 +0000 (18:16 +0100)
This is needed by the "tokenGroups" work in the operational LDB module.

source4/auth/auth.h
source4/auth/sam.c

index b0a907f624d0cdf08cb7c34293930e257ab9fd63..bbdbbc3127aef0ff0f1a935d8b6fedfdcb20733b 100644 (file)
@@ -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,
index 7dbe6d76e6639a8117555c2c606d7c9d0ca5d985..20efc3684ab512d01698b8e97dee9fe2d7076344 100644 (file)
@@ -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)