s4:lib/http: add HTTP_AUTH_NEGOTIATE which maps to the "http_negotiate" gensec backend
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Jul 2017 11:03:40 +0000 (13:03 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 7 Aug 2017 13:20:02 +0000 (15:20 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/lib/http/http.h
source4/lib/http/http_auth.c

index a871462..0fa65ca 100644 (file)
@@ -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 {
index 288a664..31f6a2b 100644 (file)
@@ -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);