s3:winbind: Create a binding handle for each child
authorSamuel Cabrero <scabrero@samba.org>
Thu, 3 Jun 2021 18:05:48 +0000 (20:05 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 19 May 2022 17:51:33 +0000 (17:51 +0000)
Next commits will convert InitConnection from struct based to NDR based
and this call will be directly issued to a domain child so create a 'wbint'
binding handle for domain childs too.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_dual.c

index b880feaac1339ca17781d5fa22152c09a654b8ba..5394d992de2b474ff0d7853dd93230f8dce95e8b 100644 (file)
@@ -829,10 +829,9 @@ void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
        child->table = table;
        child->queue = tevent_queue_create(NULL, "winbind_child");
        SMB_ASSERT(child->queue != NULL);
-       if (domain == NULL) {
-               child->binding_handle = wbint_binding_handle(NULL, NULL, child);
-               SMB_ASSERT(child->binding_handle != NULL);
-       }
+
+       child->binding_handle = wbint_binding_handle(NULL, NULL, child);
+       SMB_ASSERT(child->binding_handle != NULL);
 }
 
 struct winbind_child_died_state {