s4:dsdb/rootdse: Support netlogon request
commita7a61ec8726585e32dd8cc48d304a77fb3c4713a
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Sun, 27 Oct 2013 05:55:48 +0000 (27 06:55 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 29 Apr 2014 08:24:53 +0000 (29 10:24 +0200)
tree19db3ffeeafaa4017b95822db659b3f5c65cf0a1
parent19a5ac283f3125a0c17d43a9561e395612f87437
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>
(cherry picked from commit 0620c79d76b69811fd6c00d912db05477d894724)
source4/dsdb/samdb/ldb_modules/rootdse.c
source4/dsdb/samdb/ldb_modules/wscript_build_server
source4/ldap_server/ldap_backend.c