curl-library
Re: Does libcurl support Kerberos constrained delegation?
Date: Tue, 10 Jul 2018 13:05:07 +0000 (UTC)
On Mon, Jul 9, 2018, 16:38 Sachin Nikumbh <sanikumbh_at_gmail.com> wrote:Â
>> Hi,Â
>>Â
>> Thanks for your response. I do have a follow up question. Since theÂ
>> libcurl option is GSSAPI based, how will Kerberos delegation work onÂ
>> Windows with SSPI if we need to use libcurl?Â
>>Â
>> ThanksÂ
>> SachinÂ
>>Â
>> On Mon, Jul 9, 2018 at 2:49 AM Isaac Boukris <iboukris_at_gmail.com> wrote:Â
>>Â
>>>Â
>>>Â
>>> On Mon, Jul 9, 2018, 05:30 Sachin Nikumbh <sanikumbh_at_gmail.com> wrote:Â
>>>Â
>>>> Hi,Â
>>>>Â
>>>>Â
>>>>Â
>>>> I am looking at libcurl’s support on Kerberos delegation.Â
>>>>Â
>>>> The only thing I found is CURLOPT_GSSAPI_DELEGATION added in 7.22.0.Â
>>>>Â
>>>>Â https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html%c2
>>>>Â
>>>> However, there are several issues with this option:Â
>>>>Â
>>>> 1. Looks like this option is for the original Kerberos v5 delegationÂ
>>>> (unconstrained delegation for any services), not the Microsoft KerberosÂ
>>>> protocol extension for constrained delegation.Â
>>>> 2. It’s using GSSAPI. So does it work natively on Windows with SSPI?Â
>>>>Â
>>>>Â
>>>>Â
>>>> The preferred way to do Kerberos delegation is to do protocol transitionÂ
>>>> (S4U2Self) and Constrained delegation (S4U2Proxy).Â
>>>>Â
>>>>Â https://msdn.microsoft.com/en-us/library/cc246071.aspx%c2
>>>>Â
>>>>Â https://k5wiki.kerberos.org/wiki/Projects/Services4User%c2
>>>>Â
>>>>Â
>>>>Â
>>>> Is this supported in libcurl?Â
>>>>Â
>>>> If not, is there any plan to support it?Â
>>>>Â
>>>Â
>>>Â
>>> It doesn't have much to do with libcurl, if the contains the delegatedÂ
>>> credentials (e.g. acquired via gss_acquire_cred_impersonate_name) they willÂ
>>> be used by the gssapi library when invoked by libcurl.Â
>>>Â
>>Â
>Â I don't know about delegation in sspi, it might be possible to achieveÂ
>Â something similar depending on the API.Â
 The sspi LsaLogonUser can be used to achieve similar things as gss_acquire_cred_impersonate_name.However, that will put the delegated credential in LSA credential cache, GSSAPI may not be able to access it.
Does anyone know how to do kerberos delegation using libcurl on Windows?
Thanks.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-07-10