]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: let add_trusted_domain() mark domains as initialized when loaded from...
authorStefan Metzmacher <metze@samba.org>
Wed, 25 Sep 2024 17:31:01 +0000 (19:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 1 Oct 2024 09:53:32 +0000 (09:53 +0000)
We at least pass SEC_CHAN_LOCAL for internal domains,
only learned domains use SEC_CHAN_NULL.

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

index 86884b70d6390492bf968ab88a388fb6dedb0de5..681d4194127d504031d9c8278038f2ba7f33642e 100644 (file)
@@ -278,6 +278,15 @@ static NTSTATUS add_trusted_domain(const char *domain_name,
 
        domain->can_do_ncacn_ip_tcp = domain->active_directory;
 
+       if (secure_channel_type != SEC_CHAN_NULL) {
+               /*
+                * If we loaded the domain from
+                * our config it is initialized
+                * completely.
+                */
+               domain->initialized = true;
+       }
+
        /* Link to domain list */
        DLIST_ADD_END(_domain_list, domain);