mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
*
|
||||
@@ -253,7 +253,8 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
if (password == simianGridCredential ||
|
||||
"$1$" + password == simianGridCredential ||
|
||||
"$1$" + Utils.MD5String(password) == simianGridCredential ||
|
||||
Utils.MD5String(password) == simianGridCredential)
|
||||
Utils.MD5String(password) == simianGridCredential ||
|
||||
"$1$" + Utils.MD5String(password + ":") == simianGridCredential)
|
||||
{
|
||||
authorizeResult = Authorize(userID);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user