Is it possible to populate an ICredentials object with the current user context?
<p>I need to call a webdav function, and this requires credentials. The user that the rest of the c# code runs under has access to this external website where the webdav function executes. </p>

<p>How can I pass the executing users credentials through to the webdav function without manually specifying the username + password. </p>

<p>My code looks something like this:</p>

<pre><code>var request = (HttpWebRequest)WebRequest.Create(folderAddress);
request.Credentials =  credentials;// here I need the transform; 
request.Method = "MKCOL";
response = (HttpWebResponse)request.GetResponse();
response.Close();
</code></pre>

<p>Thanks in advance</p>

<p>EDIT: from my understanding System.Net.CredentialCache.DefaultCredentials gets the currently logged on user (correct me if I'm wrong), but the currently logged on user isn't the same as the user account that runs this service. </p>
