winbindd: restore SEC_CHAN_NULL fallback in cm_connect_netlogon_transport
authorRalph Boehme <slow@samba.org>
Mon, 27 Nov 2017 14:28:38 +0000 (15:28 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 29 Nov 2017 15:59:15 +0000 (16:59 +0100)
commita8e0bdc97100578d85f58633bcdf64b7cfb4c216
tree81c85dfc3e4629fb3975f411f1fbd9fae988c785
parent3e43f80ad1f0ce2f0a807da64d1f5e8bd6512526
winbindd: restore SEC_CHAN_NULL fallback in cm_connect_netlogon_transport

This partially reverts commit d7e31d9f4d9ce7395e458ac341dd83ac06255a20
"winbindd: Use rpccli_connect_netlogon" and restores handling of SEC_CHAN_NULL.

Without this we fail to enumerate domains in trusted forests so users
from any child-domain (or tree-root) in the trusted forest can't login
via eg SMB.

This is a temporary hack that will go away once we get rid of the trusted domain
list.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13167

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_cm.c