The Samba-Bugzilla – Bug 11392
Joining a Huawai storage fails: empty CLDAP ping answer
Last modified: 2015-07-10 01:46:59 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. 126.96.36.199 "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.