Commit 7a42831 GPO: Add ad_options to ad_gpo_process_som_state

1 file Authored by mzidek 4 months ago , Committed by jhrozek 4 months ago ,
GPO: Add ad_options to ad_gpo_process_som_state

We will need at least ad_site option from this
context available to get the AD site override
value.

Resolves:
https://pagure.io/SSSD/sssd/issue/3646

Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

    
 1 @@ -146,6 +146,7 @@
 2                                              struct ldb_context *ldb_ctx,
 3                                              struct sdap_id_op *sdap_op,
 4                                              struct sdap_options *opts,
 5 +                                            struct dp_option *ad_options,
 6                                              int timeout,
 7                                              const char *target_dn,
 8                                              const char *domain_name);
 9 @@ -1975,6 +1976,7 @@
10                                        state->ldb_ctx,
11                                        state->sdap_op,
12                                        state->opts,
13 +                                      state->access_ctx->ad_options,
14                                        state->timeout,
15                                        state->target_dn,
16                                        state->host_domain->name);
17 @@ -2701,6 +2703,7 @@
18       struct tevent_context *ev;
19       struct sdap_id_op *sdap_op;
20       struct sdap_options *opts;
21 +     struct dp_option *ad_options;
22       int timeout;
23       bool allow_enforced_only;
24       char *site_name;
25 @@ -2734,6 +2737,7 @@
26                           struct ldb_context *ldb_ctx,
27                           struct sdap_id_op *sdap_op,
28                           struct sdap_options *opts,
29 +                         struct dp_option *ad_options,
30                           int timeout,
31                           const char *target_dn,
32                           const char *domain_name)
33 @@ -2752,6 +2756,7 @@
34       state->ev = ev;
35       state->sdap_op = sdap_op;
36       state->opts = opts;
37 +     state->ad_options = ad_options;
38       state->timeout = timeout;
39       state->som_index = 0;
40       state->allow_enforced_only = 0;