Add another variant of password hash construction to SimianAuthenticationServiceConnector.CheckPassword()
This might be unique to the inventory archiver password check, though at the time it was written, hash construction there should have been identical to other parts of opensim This is from patch http://opensimulator.org/mantis/view.php?id=4983. Thanks cmickeyb.prebuild-update
parent
8d2e8b7d5c
commit
d6deebdd63
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) Contributors, http://opensimulator.org/
|
* Copyright (c) Contributors, http://opensimulator.org/
|
||||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||||
*
|
*
|
||||||
|
@ -253,7 +253,8 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||||
if (password == simianGridCredential ||
|
if (password == simianGridCredential ||
|
||||||
"$1$" + password == simianGridCredential ||
|
"$1$" + password == simianGridCredential ||
|
||||||
"$1$" + Utils.MD5String(password) == simianGridCredential ||
|
"$1$" + Utils.MD5String(password) == simianGridCredential ||
|
||||||
Utils.MD5String(password) == simianGridCredential)
|
Utils.MD5String(password) == simianGridCredential ||
|
||||||
|
"$1$" + Utils.MD5String(password + ":") == simianGridCredential)
|
||||||
{
|
{
|
||||||
authorizeResult = Authorize(userID);
|
authorizeResult = Authorize(userID);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue