Using NT Authentication in a Non-Web Application

From: Barry S. (msdn_at_statline.com)
Date: 08/28/03


Date: Thu, 28 Aug 2003 09:21:07 -0700


I'm trying to modify an application to use NT/W2K
Authentication to log Users in. I've found some
interesting articles that showed me how to use the
WindowsIdentity and WindowsPrincipal classes to get
information about the current User logged into NT/W2K.

However, I haven't found anything that allows me to
actually authenticate a User. Is there a way to do this?

Thanks, Barry S.



Relevant Pages

  • Re: Using NT Authentication in a Non-Web Application
    ... There is a good sample on P/Invoke for LogonUser here: ... > Authentication to log Users in. ... > WindowsIdentity and WindowsPrincipal classes to get ... > information about the current User logged into NT/W2K. ...
    (microsoft.public.dotnet.security)
  • Re: authorization and authentication
    ... Use the WindowsPrincipal and WindowsIdentity Objects to accomplish the same. ... >> Authentication section then enable the typeof authentication you ... >> (only the root). ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Authentication Nightmare
    ... I've been going round and round with this authentication business to no ... however I continue to get the challenge/response while I'm ... impersonating the user and trying to redirect to their personal directory. ... WindowsIdentity widTempIdentity = new WindowsIdentity; ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ActiveDirectory authentication - more issues
    ... To create a WindowsIdentity you have to create a token - you could do that yourself - you have username/password - but this has to be done on every single request - so you would have to cache/store the credentials of the user on the web server - nothing i would recommend. ... are authenticated via ActiveDirectory and IsInRole hits ... no -you are doing forms authentication. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ActiveDirectory authentication - more issues
    ... Only IWA results in a WindowsIdentity. ... In the case of the AD Provider, LDAP is used to verify credentials - IsInRole ... yourself - you have username/password - but this has to be done on every ... no -you are doing forms authentication. ...
    (microsoft.public.dotnet.framework.aspnet.security)