If a samba DC and an AD DC are in a different subnet, have a trust relationship and NetBIOS name resolution is not available winbindd cannot resolve any DC in the trusted domain, even if the DNS domain name of the trusted domain is available. The attached patch tries to get the DNS domain name of the trusted domain and if it is available DNS lookups are used to resolve the DCs of the trusted domain. If it is not available a fallback to the original NetBIOS name resolution is done.
Created attachment 7911 [details] Patch to allow DNS lookups in winbind
Comment on attachment 7911 [details] Patch to allow DNS lookups in winbind Look good to me. Thanks for the patch.
*** Bug 9230 has been marked as a duplicate of this bug. ***
Created attachment 7970 [details] Fixed version of that patch (that is in master)
Comment on attachment 7970 [details] Fixed version of that patch (that is in master) Looks good, thanks Günther!
Karolin, please add to rc2.
Do we need this in 3.6.x too ? Jeremy.
Pushed to autobuild-v4-0-test. Re-assigning to Günther to clarify if it's needed in v3-6-test also. Thanks!
3.6 won't get such fixes any more. Too late now to reply, Günther ;-) I'll close the bug now.