Determining the Integrated Windows Authentication type

From: Jim Dennison (jimdennison_at_hotmail.com)
Date: 09/14/04

  • Next message: Jamie Cross: "Re: Forms authentication fails on some computers with IE HELP ! :-("
    Date: 14 Sep 2004 08:37:06 -0700
    
    

    I'd like to be able to determine whether Kerberos was used to
    authenticate the user that is accessing an ASPX page protected by
    Windows Integrated Authentication.

    I've tried calling the 'WindowsIdentity.AuthenticationType' property
    from within the page; the documentation for AuthenticationType claims
    that 'Basic authentication, NTLM, Kerberos, and Passport are examples
    of authentication types.';

    see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecurityprincipaliidentityclassauthenticationtypetopic.asp.

    However, WindowsIdentity.AuthenticationType _always_ seems to return a
    value of 'Negotiate', regardless of whether the client (browser box)
    and web server are both in Win2K or Win2K3 domains, or a mixture, and
    whether or not I am prompted by the browser for credentials, or passed
    straight through.

    Is this a limitation of the WindowsIdentity.AuthenticationType API
    when used in an ASPX page, or more likely a configuration issue? If
    the former, is there some other .NET API that can tell me what
    underlying authentication system was used (e.g. Kerberos, NTLM)?

    Any ideas gratefully received !

    Jim


  • Next message: Jamie Cross: "Re: Forms authentication fails on some computers with IE HELP ! :-("

    Relevant Pages


  • Quantcast