Re: ASP.net & Win32 API (LogonUser) question...
From: Rich (bobo456_at_hotmail.com)
Date: 2 Nov 2004 07:55:04 -0800
Thanks for the response. I have tried this as well:
I still only have Windows Auth checked in IIS and I still get
Challenged eventhough I am using LogonUser to login the user to the
Any other ideas?
When I mentioned using both Windows Auth (IIS) & Forms Auth (Asp.net)
I was trying to follow this example.
However, really my main goal is to login the user without getting the
windows challenge, but to log them in manually so that they don't have
to close the browser in order to sign in as a different user. Also I
still want to retain the Windows Auth to check each file that is
requested is being used by a valid user/group on the server.
Scott Allen <bitmask@[nospam].fred.net> wrote in message news:<firstname.lastname@example.org>...
> Hi Rich:
> I'm a little confused. You want to use Windows authentication but you
> have the web.config setup for Forms authentication? Forms auth will
> always force the browser to prompt the user to login. This setting in
> web.config will trump the IIS setting.
> I think you want to change the web.config to Windows authentication
> only and deny anonymous access. Once you do this there is no need to
> use LogonUser, you can have the impersonate="True" in the web config
> and the request will access local resources using the client's
> identity. If the client is not in a group allowed to see a particular
> file the server will deny authorization.
> Tracking the user's session is a different issue and independent of
> how the app authenticates and authorizes the user. You can still have
> session state without forms authentication.
> Making sense?