S
Steve Drake
All,
I am doing a WEBDAV request and I want to pass the users Credentials to the
webdav server, eg some code like :
Request.Credentials = CredentialCache.DefaultCredentials;
This does not work, as I get AUTH FAIL, but if I pass the user name and
password by using :
MyCredentialCache.Add( new System.Uri(strRootURI),
"NTLM",
new System.Net.NetworkCredential(strUserName, strPassword, strDomain)
);
Request.Credentials = CredentialCache.MyCredentialCache;
it works, but I don't want to hard code the username / pass and the username
/ pass must be the current user as this is an exchange WEBDAV request.
Steve
I am doing a WEBDAV request and I want to pass the users Credentials to the
webdav server, eg some code like :
Request.Credentials = CredentialCache.DefaultCredentials;
This does not work, as I get AUTH FAIL, but if I pass the user name and
password by using :
MyCredentialCache.Add( new System.Uri(strRootURI),
"NTLM",
new System.Net.NetworkCredential(strUserName, strPassword, strDomain)
);
Request.Credentials = CredentialCache.MyCredentialCache;
it works, but I don't want to hard code the username / pass and the username
/ pass must be the current user as this is an exchange WEBDAV request.
Steve