I’m trying to add a NetApp Simulator (Data Ontap 8.1.4) to a Samba 4.1.6 domain and it is failing with the message “Setup cannot connect to an LDAP server for the NETAPP.TEST active directory domain, and so cannot continue”. I compared network packets exchanged between netapp/samba and netapp/win2008R2 and the difference is that samba returns 0 results to the query filter (&(&(DnsDomain=NETAPP.TEST)(Host=STORE-SIM))(NtVer=0x00000006)). Both tcpdumps are attached. Bruno Fernandes
There're no attachments...
Created attachment 9860 [details] netapp/win2008R2 network dump
Created attachment 9861 [details] netapp/samba4 network dump
Hi, Both tcpdumps are attached now. Bruno Fernandes
*** Bug 10570 has been marked as a duplicate of this bug. ***
Created attachment 9881 [details] patches cherry-picked from master for 4.1 Attached are the patches from git master for exactly this issue.
Created attachment 9882 [details] patches cherry-picked from master for 4.1 (small correction to patch, I ran git format-patch to exported it with -s, and should not have) Please confirm this fixes your issue, and then it can go into the next Samba 4.1 release.
(In reply to comment #7) > Created attachment 9882 [details] > patches cherry-picked from master for 4.1 > > (small correction to patch, I ran git format-patch to exported it with -s, and > should not have) > > Please confirm this fixes your issue, and then it can go into the next Samba > 4.1 release. I can confirm that the patches fix the problem I reported - realmd works and ldapsearch returns netlogon data.
Pushed to autobuild-v4-1-test. Please note that one patch added whitespace errors and avoid it in future: Applying: s4:dsdb: Move cldap netlogon functions into samdb/ldb_modules /data/git/samba/v4-1-test/.git/rebase-apply/patch:537: trailing whitespace. /* /data/git/samba/v4-1-test/.git/rebase-apply/patch:544: trailing whitespace. /data/git/samba/v4-1-test/.git/rebase-apply/patch:549: trailing whitespace. /data/git/samba/v4-1-test/.git/rebase-apply/patch:554: trailing whitespace. /data/git/samba/v4-1-test/.git/rebase-apply/patch:668: trailing whitespace. NULL, LDB_SCOPE_SUBTREE, warning: squelched 9 whitespace errors warning: 14 lines add whitespace errors. Applying: libcli/cldap: Add utility to create netlogon filter Applying: s4:torture/ldap: Add test for netlogon over tcp /data/git/samba/v4-1-test/.git/rebase-apply/patch:382: trailing whitespace. /* /data/git/samba/v4-1-test/.git/rebase-apply/patch:386: trailing whitespace. /data/git/samba/v4-1-test/.git/rebase-apply/patch:389: trailing whitespace. /data/git/samba/v4-1-test/.git/rebase-apply/patch:394: trailing whitespace. /data/git/samba/v4-1-test/.git/rebase-apply/patch:399: trailing whitespace. warning: squelched 2 whitespace errors warning: 7 lines add whitespace errors.
Hi, It's working with me too. Good work! Thank you. Regards, BF
Pushed to v4-1-test. Closing out bug report. Thanks!