The Samba-Bugzilla – Bug 11392
Joining a Huawai storage fails: empty CLDAP ping answer
Last modified: 2016-12-06 18:57:00 UTC
Created attachment 11241 [details]
Seen in the wild: A Huawai storage array performs the initial CLDAP ping without NtVer in the filter. Samba doesn't send a searchResEntry in this case, only the searchResResult (success).
[MS-ADTS] sect. 184.108.40.206 "Domain Controller Response to an LDAP Ping" specifies that in this case the DC should answer normally with a NETLOGON_SAM_LOGON_RESPONSE_NT40 structure.
The attached patch fixes the problem, verified with examples/misc/cldap.pl as well as with that Huawai device.
In addition to this patch, the testsuite needs to be modified to cover the same case, so we don't regress here.
Once that is done, I'll be very glad to ask for a second review and get this into master.
Is anyone working on the test?
It's a pitty that the patch doesn't get upstream...
> Is anyone working on the test?
What is expected here, create a torture test for each misbehaving corner case?
(In reply to Arvid Requate from comment #3)