Re: Routing Userrights to another ASP.Net Webapplication
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Aug 2008 08:18:11 -0500
In order to make this type of scenario work, you need to implement Kerberos
delegation. If you are able to do that, then DefaultCredentials will work
Kerberos delegation can be a challenge to set up, but there are many
documents from Microsoft that explain how.
You probably won't change anything from a coding perspective. It is mostly
an act of configuration.
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
"T. Beneke" <t.beneke@xxxxxxxxxxxxxx> wrote in message
I've got a ASP.Net Application, whos running on an IIS with integrated
security. This Application offers a download for documents who are not
hosted in the ASP.Net Application. It's hosted on a several SharePoint
Server and all servers are in the same domain. A User has access to both
of the Server.
I want to handle a request from the ASP.Net Application to the SharePoint
with the userrights (usercredential) of the current user.
Here is a samplesourcecode to explain:
Dim WC As New System.Net.WebClient
'WC.Credentials = CredentialCache.DefaultCredentials ' doesn't work
'WC.Credentials = CredentialCache.DefaultNetworkCredentials 'doesn't work
WC.Creddentials = New Net.NetworkCredential("mr.x", "password",
"domain...") ' works fine!!! but in the current context I've got no
i need something like:
WC.Credentials = HttpContext.Current.User.Credentials 'this is only an
example it dosn't exist
Has anybody an idea?
- Prev by Date: AzMan Caching Issue
- Next by Date: Need of time
- Previous by thread: AzMan Caching Issue
- Next by thread: Need of time