added NTLM auth support
This commit is contained in:
@@ -222,6 +222,12 @@ namespace KeePassLib.Serialization
|
|||||||
new NetworkCredential(ioc.UserName, ioc.Password)
|
new NetworkCredential(ioc.UserName, ioc.Password)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
credentialCache.Add(
|
||||||
|
new Uri(new Uri(ioc.Path).GetLeftPart(UriPartial.Authority)),
|
||||||
|
"NTLM",
|
||||||
|
new NetworkCredential(ioc.UserName, ioc.Password)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
wc.Credentials = credentialCache;
|
wc.Credentials = credentialCache;
|
||||||
} catch (NotImplementedException e)
|
} catch (NotImplementedException e)
|
||||||
@@ -259,6 +265,11 @@ namespace KeePassLib.Serialization
|
|||||||
"Digest", // authentication type
|
"Digest", // authentication type
|
||||||
new NetworkCredential(ioc.UserName, ioc.Password) // credentials
|
new NetworkCredential(ioc.UserName, ioc.Password) // credentials
|
||||||
);
|
);
|
||||||
|
credentialCache.Add(
|
||||||
|
new Uri(new Uri(ioc.Path).GetLeftPart(UriPartial.Authority)), // request url's host
|
||||||
|
"NTLM", // authentication type
|
||||||
|
new NetworkCredential(ioc.UserName, ioc.Password) // credentials
|
||||||
|
);
|
||||||
|
|
||||||
req.Credentials = credentialCache;
|
req.Credentials = credentialCache;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user