]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli4: Call map_netlogon_samlogon_response directly
authorVolker Lendecke <vl@samba.org>
Tue, 29 Oct 2024 07:57:53 +0000 (08:57 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 11 Nov 2024 14:03:03 +0000 (14:03 +0000)
Avoid using a boolean flag passed down

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/libcli/finddcs_cldap.c

index b385b1c5b9f53c6fc7901fde69762ff3c55df9d2..527846167694ac6f618ba66e175aefd51a589dd0 100644 (file)
@@ -308,7 +308,6 @@ static void finddcs_cldap_next_server(struct finddcs_cldap_state *state)
                NETLOGON_NT_VERSION_5 |
                NETLOGON_NT_VERSION_5EX |
                NETLOGON_NT_VERSION_IP;
-       state->netlogon->in.map_response = true;
 
        DEBUG(4,("finddcs: performing CLDAP query on %s\n",
                 state->srv_addresses[state->srv_address_index]));
@@ -345,6 +344,8 @@ static void finddcs_cldap_netlogon_replied(struct tevent_req *subreq)
                finddcs_cldap_next_server(state);
                return;
        }
+       map_netlogon_samlogon_response(&state->netlogon->out.netlogon);
+
        if (state->minimum_dc_flags !=
            (state->minimum_dc_flags & state->netlogon->out.netlogon.data.nt5_ex.server_type)) {
                /* the server didn't match the minimum requirements */