Ask a Question related to ASP.NET Security, Design and Development.
-
Web Developer #1
Extract NetworkCredential from WindowsIdentity
I'm using the Windows Integrated Authentication scheme for my web apps and
web services. When my web applications make calls to the web services I need
to attach the NetworkCredential of the requesting user to the web service
proxy client.
I can achieve this by impersonating the requesting user, and setting the web
service proxy's Credentials member as follows:
SoapHttpClientProtocol.Credentials =
System.Net.CredentialCache.DefaultCredentials
However, I don't always want to impersonate the requesting user since I have
to grant them access to systems folders like "Temporary ASP.NET Files" etc.
It seems like I should be able to create a NetworkCredential from the
WindowsIdentity, but the WindowsIdentity only exposes a "Name" member - no
password.
Another option is to manually impersonate the user, set the Credentials
member of the proxy client, and then revert back, but this seems pretty
kludgy.
Does anyone know how to derive a NetworkCredential from a WindowsIdentity?
Thank you!
Web Developer Guest
-
using System.Net.NetworkCredential class
I am using NUnitASP and I have run into problem "faking" user credentials. In my ASP.Net/C# application, I have turned off anonymous access to the... -
Trying to pass NetworkCredential to WebService
Hello, I am running W2k3, Visual Studio 2003, Framework version 1.1.4322. I have one simple asp.net web service and one simple asp.net web app.... -
Integrated windows authentication and NetworkCredential
Hi, I have my asp.net webpage configured to use the integrated windows authentication in IIS. I need to use NetworkCredential object to get... -
WindowsIdentity ?
Is there a way to modify WindowsIdentity.Name for System.Security.Principal class at runtime after your app. successfully logs the user on the... -
Two Web Services using same NetworkCredential?
Hi, I've been trying to figure this out all day and thought someone here might be able to help. I have a Windows form app that's using windows... -
Web Developer #2
Extract NetworkCredential from WindowsIdentity
I'm using the Windows Integrated Authentication scheme for my web apps and
web services. When my web applications make calls to the web services I need
to attach the NetworkCredential of the requesting user to the web service
proxy client.
I can achieve this by impersonating the requesting user, and setting the web
service proxy's Credentials member as follows:
SoapHttpClientProtocol.Credentials =
System.Net.CredentialCache.DefaultCredentials
However, I don't always want to impersonate the requesting user since I have
to grant them access to systems folders like "Temporary ASP.NET Files" etc.
It seems like I should be able to create a NetworkCredential from the
WindowsIdentity, but the WindowsIdentity only exposes a "Name" member - no
password.
Another option is to manually impersonate the user, set the Credentials
member of the proxy client, and then revert back, but this seems pretty
kludgy.
Does anyone know how to derive a NetworkCredential from a WindowsIdentity?
Thank you!
Web Developer Guest



Reply With Quote

