[PATCH 2/2] s4:dsdb/rootdse: Support netlogon request
benjaminfranzke at googlemail.com
Tue Oct 29 08:29:29 MDT 2013
I have had that error sometimes while coding the torture test,
but now I dont get it reproduced..
Not with running smbtorture manually, and also not with make test
So I ran the test with make testenv in a while loop until it would fail.
After some iterations I got an error, but its another one
(NT_STATUS_NOT_FOUND) than you got.
The server segfaulted because of a mistake in the rootdse/netlogon code
The msg->dn was not part of msg's talloc tree, i've fixed this in:
With that patch the tests runs fine running it in many iterations.
I dont know whether this might fix the issue you have,
but could you test whether it runs fine for you now?
2013/10/29 Andrew Bartlett <abartlet at samba.org>
> On Mon, 2013-10-28 at 14:51 +0100, Benjamin Franzke wrote:
> > Hi Andrew,
> > Thank you very much for your help! I've now passed the remote_address as
> > opaque
> > and tried to do a proper torture integration without duplicating the
> > existing testcode.
> > Therefore I decided to pass the netlogon function as function pointer to
> > the tests..
> > And added a tcp replacement/alternative for cldap_netlogon.
> > (It is located directly in the test c-file.)
> > Adding tcp support to libcli looked wrong and like a lot of resulting
> > ugliness to me.
> > I hope you're ok with that?
> > Adding the patches as attachment.
> > (used format-patch -C, which hopefully makes it a bit easier to review)
> > The Branch is also available at:
> > https://git.bnfr.net/samba/log/?h=netlogon-4
> This looks great!
> I reviewed and pushed these to:
> I thought everything was good, but while just checking these over
> however, I did an autobuild, and I got:
> Trying netlogon level 0x1e
> Trying with User=NULL
> Trying with User=Administrator
> ndr_pull_error(18): not all bytes consumed ofs size
> Printing out netlogon server type flags: 127.0.0.21
> The word is: 5117
> NBT_SERVER_PDC NBT_SERVER_GC NBT_SERVER_LDAP NBT_SERVER_DS
> NBT_SERVER_KDC NBT_SERVER_TIMESERV NBT_SERVER_CLOSEST
> NBT_SERVER_WRITABLE NBT_SERVER_GOOD_TIMESERV
> UNEXPECTED(failure): samba4.ldap.netlogon-tcp.netlogon-tcp(dc)
> REASON: _StringException:
> _StringException: ../source4/torture/ldap/netlogon.c:122: status was
> NT_STATUS_PORT_MESSAGE_TOO_LONG, expected NT_STATUS_OK: incorrect status
> FAILED (1 failures, 0 errors and 0 unexpected successes in 0 testsuites)
> Can you have a look into this a bit more? It's annoying, because I
> don't see it when I run the test on it's own :-(
> [1/1 in 0s] samba4.ldap.netlogon-tcp(dc)
> samba: EOF on stdin - terminating
> samba child process 7098 exited with value 0
> ALL OK (1 tests in 1 testsuites)
> A summary with detailed information can be found in:
> Andrew Bartlett
> Andrew Bartlett
> Authentication Developer, Samba Team http://samba.org
> Samba Developer, Catalyst IT http://catalyst.net.nz
More information about the samba-technical