Re: Windows authentication in code
- From: "Joe Kaplan \(MVP - ADSI\)" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 16:28:04 -0500
Typically, when you do authentication in code like this, you do it as part
of a forms authentication implementation. Essentially, if you don't want to
do Windows auth with IIS, the browser needs an alternate mechanism like a
cookie (which is what forms auth uses) to reauthenticate on each request.
Why are you doing this though? Why not just use Windows auth?
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Jerry C" <jerryed@xxxxxxxxxxxxx> wrote in message
news:B6B20A59-A4A7-4B8A-9965-A963DE8DC843@xxxxxxxxxxxxxxxx
I am trying to login a user to NT on a default.aspx page when the site is
setup to anonymous. I used some code for impersonation and it works for
the
default page but when I redirect to other pages I am back to the anonymous
user for IIS6. How can I get the new impersonated user to be the user for
the
session just as if he was logged on by integrated windows authentication.
It
may be that impersonation is not the way to go. Some code examples may
help
In a post:
Subject: Unable to establish secure connection with the server 6/13/2006
6:19 AM PST
Luke Zhang wrote.
How about this: you may have a main "entry" form, user can select his
source by himself, for example, he can select if he is a user with
companion account, or a AD user which need to be authenticated with form.
If user select "companion account", you may redirect him to a windows
authentication webform. For others, redirect him to a login form.
The windows authentication webform may be the answer. Are there some
examples on how to do this in code so the token or whatever it is called
is
passed around to the other pages. I am a little light on This subject.
Thanks
--
Jerry
.
- Prev by Date: The trust relationship between this workstation and the primary domain failed
- Next by Date: Authorization question, w/ "Windows" authentication mode
- Previous by thread: The trust relationship between this workstation and the primary domain failed
- Next by thread: RE: Windows authentication in code
- Index(es):
Relevant Pages
|
|