]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: set_dc_type_and_flags() doesn't need to do something for primary or...
authorStefan Metzmacher <metze@samba.org>
Wed, 25 Sep 2024 17:33:09 +0000 (19:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 1 Oct 2024 09:53:32 +0000 (09:53 +0000)
In the end set_dc_type_and_flags should be removed completely, but
this is a good start in the right direction...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_cm.c

index d10f0ffcf6fac8ef96a57b442e04b4159eb9f8b2..b39fc6056ecfbe4908fdf3b769f3392c7deabb12 100644 (file)
@@ -2436,11 +2436,18 @@ static void set_dc_type_and_flags( struct winbindd_domain *domain )
        }
 
        /* we always have to contact our primary domain */
-
-       if ( domain->primary || domain->internal) {
-               DEBUG(10,("set_dc_type_and_flags: setting up flags for "
-                         "primary or internal domain\n"));
-               set_dc_type_and_flags_connect( domain );
+       if (domain->primary || domain->internal) {
+               /*
+                * primary and internal domains are
+                * are already completely
+                * setup via init_domain_list()
+                * calling add_trusted_domain()
+                *
+                * There's no need to ask the
+                * server again, if it hosts an AD
+                * domain...
+                */
+               domain->initialized = true;
                return;
        }