• Kerberos token

    From [email protected]@21:1/5 to All on Fri Mar 22 17:49:58 2024
    Hi,
    I have an application that authenticates against a Proxy server which user Kerberos authentication scheme.
    My application is using SSPI library (github/alexbrainman/sspi Golang package to be exact) generate a kerberos token and this token is passed to the Proxy server through Proxy-Authorization header "Proxy-Authorization: Negotiate <kerberos token>"
    My query, for the subsequent calls to the proxy do I need to regenerate this key or can I reuse the one generated the first time ? Or is it that each call to the proxy is treated as a session and that Kerberos token is for that session only ?

    Thanks for any info.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ken Hornstein@21:1/5 to All on Fri Mar 22 15:27:23 2024
    Copy: [email protected] ([email protected])

    Hi, I have an application that authenticates against a Proxy server
    which user Kerberos authentication scheme. My application is using SSPI >library (github/alexbrainman/sspi Golang package to be exact) generate
    a kerberos token and this token is passed to the Proxy server through >Proxy-Authorization header "Proxy-Authorization: Negotiate <kerberos
    token>" My query, for the subsequent calls to the proxy do I need to >regenerate this key or can I reuse the one generated the first time ?
    Or is it that each call to the proxy is treated as a session and that >Kerberos token is for that session only ?

    As a general rule, GSSAPI tokens (which in the specific case of Kerberos contain AP-REQ/AP-REP messages) are supposed to be only used once;
    they contain an expiration time in them and are supposed to be checked
    for reuse on the server side (although that may not always happen
    depending on implementation details). You should always get a new
    one by calling the appropriate APIs. Note that assuming your client
    is using a standard ticket cache only the first request will require
    contacting the KDC.

    --Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Ken Hornstein on Sun Mar 24 12:52:28 2024
    Copy: [email protected] ([email protected])

    Thanks Ken, I'm getting the token every time I communicate with the proxy. I was wondering if the token could be reused so that I could optimize code.  Thanks for the clarification .

    Yahoo Mail: Search, organise, conquer

    On Fri, 22 Mar 2024 at 7:27 pm, Ken Hornstein<[email protected]> wrote: >Hi, I have an application that authenticates against a Proxy server
    which user Kerberos authentication scheme.  My application is using SSPI >library (github/alexbrainman/sspi Golang package to be exact) generate
    a kerberos token and this token is passed to the Proxy server through >Proxy-Authorization header "Proxy-Authorization: Negotiate <kerberos
    token>" My query, for the subsequent calls to the proxy do I need to >regenerate this key or can I reuse the one generated the first time ?
    Or is it that each call to the proxy is treated as a session and that >Kerberos token is for that session only ?

    As a general rule, GSSAPI tokens (which in the specific case of Kerberos contain AP-REQ/AP-REP messages) are supposed to be only used once;
    they contain an expiration time in them and are supposed to be checked
    for reuse on the server side (although that may not always happen
    depending on implementation details).  You should always get a new
    one by calling the appropriate APIs.  Note that assuming your client
    is using a standard ticket cache only the first request will require
    contacting the KDC.

    --Ken


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)