[24730] in Kerberos

home help back first fref pref prev next nref lref last post

Re: GSS_ACCEPT_SECURITY_CONTEXT

daemon@ATHENA.MIT.EDU (Jeffrey Hutzelman)
Tue Sep 27 12:42:37 2005

Date: Tue, 27 Sep 2005 12:41:40 -0400
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: "Balakrishnan, Sivakumar" <Sivakumar_Balakrishnan@adp.com>,
        kerberos@mit.edu
Message-ID: <8DA8BCB25EA166BC31BD221B@bistromath.pc.cs.cmu.edu>
In-Reply-To: <C30753A75484EB4AA54E379557483A980114D582@EXCHANGEDS01.ds.ad.adp.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
cc: Jeffrey Hutzelman <jhutz@cmu.edu>
Errors-To: kerberos-bounces@mit.edu



On Tuesday, September 27, 2005 10:11:56 AM -0500 "Balakrishnan, Sivakumar" 
<Sivakumar_Balakrishnan@adp.com> wrote:

> I am trying to implement a custom Kerberos authentication for my IIS
> application using an ISAPI filter.   I am expecting the
> gss_accept_security_context tor return me AP-REP if I passed a input
> token(contains AP-REQ) with mutual_authentication flag set in its
> AP-options.  But in my program the gss_accept_security_context returns a
> GSS-S-Complete but when I parse the output token it just contains the
> Input principal and didn't contains a APP-REP.

It's unclear here whether the context token you're passing in is one you 
got from another GSSAPI, or one you constructed yourself.  The AP-REQ used 
by the Kerberos GSSAPI mechanism uses a special "checksum" which contains 
additional data used in negotiating the GSSAPI context (see RFC4121, 
section 4.1.1, or RFC1964 section 1.1.1).  Part of this data includes flag 
bits indicating which GSSAPI-level options were requested by the 
application.  In order for mutual authentication to happen, the 0x02 bit in 
these flags must be set.

At the GSSAPI level, the way to do this is to make sure that the 
mutual_req_flag (in C, GSS_C_MUTUAL_FLAG) is set in the call to 
GSS_Init_sec_context().

-- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
   Sr. Research Systems Programmer
   School of Computer Science - Research Computing Facility
   Carnegie Mellon University - Pittsburgh, PA

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post