s4:librpc/rpc: add support for HttpAuthOption=negotiate
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Jul 2017 11:06:58 +0000 (13:06 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 7 Aug 2017 13:20:03 +0000 (15:20 +0200)
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>
source4/librpc/rpc/dcerpc_connect.c

index 2206beff85458a592ba2ceaa8f3c24d6eeb56ddf..1252e74b5a9d231b664cf29ddc5ab339c81a5417 100644 (file)
@@ -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;