summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-07-20 13:03:40 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-07 15:20:02 +0200
commitd1f479e73b87b7785b350df2a09132f9985efa28 (patch)
tree6cfa70641f2518e9df8ad11762a43367a46cc466 /source4/lib
parent9fd27d7a4780040ccab8539efb919f7b618aa3da (diff)
downloadsamba-d1f479e73b87b7785b350df2a09132f9985efa28.tar.gz
s4:lib/http: add HTTP_AUTH_NEGOTIATE which maps to the "http_negotiate" gensec backend
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/http/http.h1
-rw-r--r--source4/lib/http/http_auth.c4
2 files changed, 5 insertions, 0 deletions
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);