s3:winbind: Make extra_data_to_sid_array() public
authorSamuel Cabrero <scabrero@samba.org>
Mon, 14 Jun 2021 16:05:34 +0000 (18:05 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Apr 2022 20:13:37 +0000 (20:13 +0000)
Later winbindd_dual_pam_auth() will be converted to a local RPC call
handler and the parent will call this function to fill the 'r' struct.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_pam.c
source3/winbindd/winbindd_proto.h

index 88132db8663acbd57bb95708c084f19482ea010e..7788a52d53b490d72385a826db68973f013df674 100644 (file)
@@ -354,9 +354,9 @@ out:
        return status;
 }
 
-static NTSTATUS extra_data_to_sid_array(const char *group_sid,
-                                       TALLOC_CTX *mem_ctx,
-                                       struct wbint_SidArray **_sid_array)
+NTSTATUS extra_data_to_sid_array(const char *group_sid,
+                               TALLOC_CTX *mem_ctx,
+                               struct wbint_SidArray **_sid_array)
 {
        TALLOC_CTX *tmp_ctx = NULL;
        struct wbint_SidArray *sid_array = NULL;
index 49178d0a0c7d67252fa5be975dd5c5f1974d8d38..8b6f9a3fb9a8aa9da6f53761a273e8661d3a9254 100644 (file)
@@ -431,6 +431,9 @@ NTSTATUS append_auth_data(TALLOC_CTX *mem_ctx,
                          union netr_Validation *validation,
                          const char *name_domain,
                          const char *name_user);
+NTSTATUS extra_data_to_sid_array(const char *group_sid,
+                               TALLOC_CTX *mem_ctx,
+                               struct wbint_SidArray **_sid_array);
 uid_t get_uid_from_request(struct winbindd_request *request);
 struct winbindd_domain *find_auth_domain(uint8_t flags,
                                         const char *domain_name);