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 a871462b6a1084a8289bce228fde29d6fb74c113..0fa65ca89a0b3c20948333d686345befcdc3d689 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 288a664fdb8ed17ffc1b60c13e67fbd490b142e8..31f6a2b6307b8e31205eb5ef5d0cd8b665872f5f 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);