determine trusted domain with windows authentication



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


.



Relevant Pages

  • Active Directory vs SqlServer which way to go?
    ... in an intranet system(using windows authentication) is it better to use the ... GROUPS in Active Directory ... the authrorization and authentication on the SQL Server roles/groups? ... ' Display the Button ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Custom Roles w/ Windows Authentication?
    ... Windows Authentication. ... But I do not want to use Active Directory to define the ... statement looks for the "admin" role on Active Directory. ... redirect the IsInRole function somewhere else more local to the application ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Listing domain users
    ... I'm using windows authentication to authenticate users to my site. ... Add the ability of listing domain users (From Active Directory) ... Filter the user list based on the roles assigned to them (via ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Best Practices
    ... What would people suggest is best Security practice? ... Windows authentication only? ... roles pulled from group assignments in Active Directory ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Mapped drive not saving credentials
    ... The box is on Active Directory and I have a mapped network drive. ... I've tried setting the "Do not allow storage of credentials or .NET ... to disabled so I enabled restart - disabled restart) but still no good. ...
    (microsoft.public.windowsxp.general)