Bug 15620 - s4:nbt_server: does not provide unexpected handling, so winbindd can't use nmb requests instead cldap
Summary: s4:nbt_server: does not provide unexpected handling, so winbindd can't use nm...
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.20.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Jule Anger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-05 12:02 UTC by Stefan Metzmacher
Modified: 2024-08-15 12:14 UTC (History)
4 users (show)

See Also:


Attachments
Patches for v4-20-test (59.90 KB, text/plain)
2024-05-29 14:35 UTC, Stefan Metzmacher
metze: review? (gd)
asn: review+
slow: review+
Details
Patches for v4-19-test (59.90 KB, text/plain)
2024-05-30 11:54 UTC, Stefan Metzmacher
slow: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Metzmacher 2024-04-05 12:02:19 UTC
winbindd needs to try nmb/dgram requests in order to implement 
wbint_DsGetDcName() for dcesrv_netr_DsRGetDCName_base_call(), when the
client provides only an NT4 domain name.

In the AD DC case process_dc_netbios() falls back to name_status_find()
and only returns NT4 data, even if the request is for an ad trust.
Comment 1 Samba QA Contact 2024-04-05 13:29:11 UTC
This bug was referenced in samba master:

7f96c21029e3b94d38bd871c79cabf872ad77fae
105247c90007474947e2314b63be72fb21f09811
011f68ae5ddc3fae8b453744aeb95766d885915e
f90cf0822d6e66426d72f92bd585119066e2a9c3
696505a1efbcc9803a287d8c267fed9d04bf8885
2b66663c75cdb3bc1b6bc5b1736dd9d35b094b42
cca373b806e01fc57bd5316d3f8a17578b4b6531
11861bcfc3054894bc445e631ae03befb4865db8
77f4f1c7dbaa2bb04d59d908923f6d11fd514da2
bfb10774b65af65f9c438a5d3e87529b1fcf46a1
796f33c05a0ca337b675b5d4d127f7c53b22528f
Comment 2 Stefan Metzmacher 2024-05-29 14:35:00 UTC
Created attachment 18314 [details]
Patches for v4-20-test
Comment 3 Ralph Böhme 2024-05-29 14:58:56 UTC
Reassigning to Jule for inclusion in 4.20.
Comment 4 Samba QA Contact 2024-05-30 10:58:06 UTC
This bug was referenced in samba v4-20-test:

260d1bbacf874254762825a6da398952cea61499
27e4297f4c767612917905246598a564a95b0b82
2f73d251e0c23973d649ac32f30d6539df8fd950
234df77ae0a50b3471cc28209ec1e523a198838d
b0c2389c886673451f48a1be9ca51415b44314fb
b440c11ea0f770623f67f8e1f6e8f3fee0cf15f9
cf37f9f527269ac2d76577dc0df53f1d369f1817
40fe6480d0d4c0dc00b05e8c52b234243c4e652b
82f73dc23127c033346604fdfc94d5bf94295375
6a673a35ea0a5d79526b96ed462cd7d0d916abbb
9d80c928b0196839035c0272c0945aad8a3b461a
Comment 5 Stefan Metzmacher 2024-05-30 11:54:47 UTC
Created attachment 18315 [details]
Patches for v4-19-test
Comment 6 Ralph Böhme 2024-06-17 10:41:36 UTC
Reassigning to Jule for inclusion in 4.19.
Comment 7 Jule Anger 2024-06-18 07:24:19 UTC
Pushed to autobuild-v4-19-test.
Comment 8 Samba QA Contact 2024-06-19 14:35:32 UTC
This bug was referenced in samba v4-20-stable (Release samba-4.20.2):

260d1bbacf874254762825a6da398952cea61499
27e4297f4c767612917905246598a564a95b0b82
2f73d251e0c23973d649ac32f30d6539df8fd950
234df77ae0a50b3471cc28209ec1e523a198838d
b0c2389c886673451f48a1be9ca51415b44314fb
b440c11ea0f770623f67f8e1f6e8f3fee0cf15f9
cf37f9f527269ac2d76577dc0df53f1d369f1817
40fe6480d0d4c0dc00b05e8c52b234243c4e652b
82f73dc23127c033346604fdfc94d5bf94295375
6a673a35ea0a5d79526b96ed462cd7d0d916abbb
9d80c928b0196839035c0272c0945aad8a3b461a
Comment 9 Samba QA Contact 2024-07-03 09:57:30 UTC
This bug was referenced in samba v4-19-test:

7e076141857f77e376bfff9261df3779fe808f14
39789dce2dd7125c73fa45478eb21652d3e18fe3
5de4ae88cedcbe584961ac575ebeddb75342286c
8c06b437064a5880202a46e137b71a57d329fc51
8b39131deb4b70382f968ee6bae32e604f716675
12a6060eed043fe5423bb14fbe9ffa76b69d8ceb
e2cec0d2800caf9ef9a4509063200371ba62388c
1d766f29245f668f9b22f4b8376f3ea43ff36ede
a308204aa1b431466b1fd12e6a69e411fea82f19
9a9dc9989266ae2b6d40295376b1fa72e9bde3ba
7ccbbb4baf1380ead6d7cb2d66694cccba7d5d85
Comment 10 Jule Anger 2024-07-03 10:04:50 UTC
Closing out bug report.

Thanks!
Comment 11 Samba QA Contact 2024-08-15 12:14:19 UTC
This bug was referenced in samba v4-19-stable (Release samba-4.19.8):

7e076141857f77e376bfff9261df3779fe808f14
39789dce2dd7125c73fa45478eb21652d3e18fe3
5de4ae88cedcbe584961ac575ebeddb75342286c
8c06b437064a5880202a46e137b71a57d329fc51
8b39131deb4b70382f968ee6bae32e604f716675
12a6060eed043fe5423bb14fbe9ffa76b69d8ceb
e2cec0d2800caf9ef9a4509063200371ba62388c
1d766f29245f668f9b22f4b8376f3ea43ff36ede
a308204aa1b431466b1fd12e6a69e411fea82f19
9a9dc9989266ae2b6d40295376b1fa72e9bde3ba
7ccbbb4baf1380ead6d7cb2d66694cccba7d5d85