determine trusted domain with windows authentication
- From: "Jerry N" <starfire@xxxxxxxxxxxxxxxx>
- Date: Fri, 7 Jul 2006 22:16:23 -0500
I am planning on using Windows authentication for a web page. I've added
these lines to my web.config file:
<identity impersonate="true"/>
<authentication mode="Windows" />
And I can view the name with:
void Page_Load(object sender, EventArgs e) {
if(User.Identity.IsAuthenticated ) {
lblIdentity.Text = "The current user is " + User.Identity.Name;
} else {
lblIdentity.Text = "The current user is not authenticated.";
}
}
So my question is, how can I authenticate the "Domain" from the
User.Identity.Name property? I was going to split the "Domain\Username"
value to get the domain name but I don't want a remote Windows client to
spoof the domain name. I also hoping to avoid hardcoding the valid domain
names and use Active Directory to validate them.
Any ideas?
Thanks,
Jerry N
.
- Follow-Ups:
- Re: determine trusted domain with windows authentication
- From: Joe Kaplan \(MVP - ADSI\)
- Re: determine trusted domain with windows authentication
- Prev by Date: Membership and Role Provider Discussion
- Next by Date: Re: IIS 6.0 host header name question
- Previous by thread: Membership and Role Provider Discussion
- Next by thread: Re: determine trusted domain with windows authentication
- Index(es):
Relevant Pages
|
|