added NTLM auth support
This commit is contained in:
@@ -216,9 +216,15 @@ namespace KeePassLib.Serialization
|
|||||||
{
|
{
|
||||||
var credentialCache = new CredentialCache();
|
var credentialCache = new CredentialCache();
|
||||||
|
|
||||||
|
credentialCache.Add(
|
||||||
|
new Uri(new Uri(ioc.Path).GetLeftPart(UriPartial.Authority)),
|
||||||
|
"Digest",
|
||||||
|
new NetworkCredential(ioc.UserName, ioc.Password)
|
||||||
|
);
|
||||||
|
|
||||||
credentialCache.Add(
|
credentialCache.Add(
|
||||||
new Uri(new Uri(ioc.Path).GetLeftPart(UriPartial.Authority)),
|
new Uri(new Uri(ioc.Path).GetLeftPart(UriPartial.Authority)),
|
||||||
"Digest",
|
"NTLM",
|
||||||
new NetworkCredential(ioc.UserName, ioc.Password)
|
new NetworkCredential(ioc.UserName, ioc.Password)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -254,9 +260,14 @@ namespace KeePassLib.Serialization
|
|||||||
if (digestAuth)
|
if (digestAuth)
|
||||||
{
|
{
|
||||||
var credentialCache = new CredentialCache();
|
var credentialCache = new CredentialCache();
|
||||||
|
credentialCache.Add(
|
||||||
|
new Uri(new Uri(ioc.Path).GetLeftPart(UriPartial.Authority)), // request url's host
|
||||||
|
"Digest", // authentication type
|
||||||
|
new NetworkCredential(ioc.UserName, ioc.Password) // credentials
|
||||||
|
);
|
||||||
credentialCache.Add(
|
credentialCache.Add(
|
||||||
new Uri(new Uri(ioc.Path).GetLeftPart(UriPartial.Authority)), // request url's host
|
new Uri(new Uri(ioc.Path).GetLeftPart(UriPartial.Authority)), // request url's host
|
||||||
"Digest", // authentication type
|
"NTLM", // authentication type
|
||||||
new NetworkCredential(ioc.UserName, ioc.Password) // credentials
|
new NetworkCredential(ioc.UserName, ioc.Password) // credentials
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user