summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-07-20 13:06:58 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-07 15:20:03 +0200
commitc8d14a554e958865cbc354cd3488824599b1a0c4 (patch)
treedad0d720b562448cf1801cedd26081566a3ab888 /source4
parent77b44fbe362660b65da0aa36aeeea3fecc4ae515 (diff)
downloadsamba-c8d14a554e958865cbc354cd3488824599b1a0c4.tar.gz
s4:librpc/rpc: add support for HttpAuthOption=negotiate
Note that rpcproxy.dll on Windows doesn't support kerberos, it allways downgrades the connection to NTLMSSP. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc_connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c
index 2206beff854..1252e74b5a9 100644
--- a/source4/librpc/rpc/dcerpc_connect.c
+++ b/source4/librpc/rpc/dcerpc_connect.c
@@ -569,6 +569,8 @@ static struct composite_context* dcerpc_pipe_connect_ncacn_http_send(
s->http_auth = HTTP_AUTH_BASIC;
} else if (strcasecmp(opt, "ntlm") == 0) {
s->http_auth = HTTP_AUTH_NTLM;
+ } else if (strcasecmp(opt, "negotiate") == 0) {
+ s->http_auth = HTTP_AUTH_NEGOTIATE;
} else {
composite_error(c, NT_STATUS_INVALID_PARAMETER_MIX);
return c;