s4:rpc_server/remote: defer the connect to the first client request
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Nov 2018 18:19:15 +0000 (19:19 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:39 +0000 (03:13 +0100)
commita8134191ec000b236948b93d2e2290cc4dc8b110
tree3d0790c6d49cf2465ab8a2780d111b96c6d73ad9
parent199d4ba7ac45d2740987be0b85438d2b4c532035
s4:rpc_server/remote: defer the connect to the first client request

This means we have a chance to use delegated credentials from the client
if available, as the authentication is already completed.

Before we only ever used the transport inherited credentials
via SMB or anonymous.

Note: most times we still fallback to anonymous...

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/remote/dcesrv_remote.c