RE: Forms authentication <-> Windows user?
From: Peng Jie (PengJie_at_discussions.microsoft.com)
Date: 02/02/05
- Previous message: Dirc: "Problem: Process.GetProcessesByName : Couldn't get process information from remote machine"
- In reply to: InspektorDerrick: "Forms authentication <-> Windows user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 2 Feb 2005 09:11:06 -0800
you can authenticate against the Active Directory by using Forms.
try the link below:
http://support.microsoft.com/?id=316748
"InspektorDerrick" wrote:
> Hi,
>
> I'm new in ASP.NET and I've got a question about authentication in an
> intranet application:
>
> I want to authentify and authorize the user by a database. Authentication
> should work like this:
>
> 1. evaluate the windows username
> 2. check if user exists in database
> yes -> new customIdentiy (IsAuthenticated = true), new customPrincipal
> (roles from database)
> no -> 3.
> 3. redirect to logon form
> 4. check if the user exists in database
> yes -> new customIdentiy (IsAuthenticated = true), new customPrincipal
> (roles from database)
> no -> securityexception or redirect
>
> The problem is, if I use Windows-Authentication I may not change
> Principal(?), if I use Forms-Authentication I cannot get the windows-user
> from step 1 (?)
> --
> Regards, InspektorDerrick
- Previous message: Dirc: "Problem: Process.GetProcessesByName : Couldn't get process information from remote machine"
- In reply to: InspektorDerrick: "Forms authentication <-> Windows user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|