s4:dsdb/rootdse: Support netlogon request
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Sun, 27 Oct 2013 05:55:48 +0000 (06:55 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 11 Nov 2013 22:00:54 +0000 (23:00 +0100)
commit0620c79d76b69811fd6c00d912db05477d894724
treefa4004473dc57dc665555004e5ee9561c4851a84
parent7a5a62547bc10053fb1e4850e0acacb6a837f36f
s4:dsdb/rootdse: Support netlogon request

This patch adds support for a netlogon ldap style request
over the tcp socket.  This is available since win2k3+ [1].

The automatic client join & configuration daemon "realmd" makes
use of this ability.
Realmd can now be used to join a computer to a samba 4 domain.
(See also:
https://lists.samba.org/archive/samba-technical/2013-October/095606.html)

Tested with:
ldapsearch -h samba-srv -x -b '' -s base "(&(NtVer=\06\00\00\00)(AAC=\00\00\00\00))" NetLogon

And compared the result in wireshark with cldap request issued by
examples/misc/cldap.pl.

[1]: http://wiki.wireshark.org/MS-CLDAP?action=recall&rev=8

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
source4/dsdb/samdb/ldb_modules/rootdse.c
source4/dsdb/samdb/ldb_modules/wscript_build_server
source4/ldap_server/ldap_backend.c