]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbindd: don't call set_domain_online_request() in the idmap child
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Feb 2023 15:31:34 +0000 (16:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 10 Mar 2023 10:38:37 +0000 (10:38 +0000)
Most idmap backends don't need access to the domain controllers.
And the related code is not needed for the backends.

Commit 17c86a2c5a5a5e2b194362e5f36f0f99910222c5 changed
the logic of set_domain_online_request() completely!
Instead of triggering a dc probe in the background,
it is now doing a blocking connection.
And doing this in the idmap child is completely useless.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15317

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_dual.c

index d9c32b10072ab74004fdd90b717795952a0462b0..239a31f7de3e2a0b6094e0d844f2fd53ba58ff6a 100644 (file)
@@ -1817,13 +1817,6 @@ static bool fork_domain_child(struct winbindd_child *child)
                }
        }
 
-       /*
-        * We are in idmap child, bring primary domain online.
-        */
-       if (is_idmap_child(child)) {
-               set_domain_online_request(primary_domain);
-       }
-
        /* We might be in the idmap child...*/
        if (child->domain && !(child->domain->internal) &&
            lp_winbind_offline_logon()) {