I investigated this further and could not find out a good way to set the
service identiy/name. So I went ahead and created this simple diff
http://www.pastebin.ca/2929587 on top of libcurl version 7.36.0. Basically
I added a new curl option CURLOPT_NEGOTIATE_SERVICE_IDENTITY for people to
specify a custom service identity. Could this feature be added to libcurl?

Best regards,
-Wenlong

On Mon, Feb 16, 2015 at 8:42 AM, Wenlong Dong <wdon...@gmail.com> wrote:

> Hi,
>
> Is there a way to set a custom service name for SPNEGO? I have a service
> deployed with a custom service principal which does not have HTTP as the
> service name, for example, foo.service/<hostname>@<realm>. Is it possible
> to configure this name from libcurl? I checked http.c and found this code:
>
>   if(neg_ctx->server_name == NULL &&
>
>       (ret = get_gss_name(conn, proxy, &neg_ctx->server_name)))
>
>     return ret;
> Is this neg_ctx->server_name settable from a CURLOPT_* option?
>
> Any help would be highly appreciated!
>
> Best regards,
> -Wenlong
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to