From: Stefan Metzmacher Date: Thu, 20 Jul 2017 11:03:40 +0000 (+0200) Subject: s4:lib/http: add HTTP_AUTH_NEGOTIATE which maps to the "http_negotiate" gensec backend X-Git-Tag: tdb-1.3.15~167 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;ds=sidebyside;h=d1f479e73b87b7785b350df2a09132f9985efa28;p=bbaumbach%2Fsamba-autobuild%2F.git s4:lib/http: add HTTP_AUTH_NEGOTIATE which maps to the "http_negotiate" gensec backend Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source4/lib/http/http.h b/source4/lib/http/http.h index a871462b6a1..0fa65ca89a0 100644 --- a/source4/lib/http/http.h +++ b/source4/lib/http/http.h @@ -65,6 +65,7 @@ enum http_cmd_type { enum http_auth_method { HTTP_AUTH_BASIC=1, HTTP_AUTH_NTLM, + HTTP_AUTH_NEGOTIATE, }; struct http_header { diff --git a/source4/lib/http/http_auth.c b/source4/lib/http/http_auth.c index 288a664fdb8..31f6a2b6307 100644 --- a/source4/lib/http/http_auth.c +++ b/source4/lib/http/http_auth.c @@ -155,6 +155,10 @@ struct tevent_req *http_send_auth_request_send(TALLOC_CTX *mem_ctx, mech_name = "http_ntlm"; state->prefix = data_blob_string_const("NTLM"); break; + case HTTP_AUTH_NEGOTIATE: + mech_name = "http_negotiate"; + state->prefix = data_blob_string_const("Negotiate"); + break; default: tevent_req_nterror(req, NT_STATUS_NOT_SUPPORTED); return tevent_req_post(req, ev);