diff options
author | Melanie | 2010-04-05 18:12:29 +0100 |
---|---|---|
committer | Melanie | 2010-04-05 18:12:29 +0100 |
commit | fe034dc3e41582a4e6fb54a9d28dbbf1413a9a9f (patch) | |
tree | c35a87bfa443bc53a4205d155481a11e53f4447e /OpenSim/Services/Connectors | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | Updates to config files for groups (diff) | |
download | opensim-SC-fe034dc3e41582a4e6fb54a9d28dbbf1413a9a9f.zip opensim-SC-fe034dc3e41582a4e6fb54a9d28dbbf1413a9a9f.tar.gz opensim-SC-fe034dc3e41582a4e6fb54a9d28dbbf1413a9a9f.tar.bz2 opensim-SC-fe034dc3e41582a4e6fb54a9d28dbbf1413a9a9f.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Services/Connectors')
3 files changed, 12 insertions, 4 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAuthenticationServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAuthenticationServiceConnector.cs index e78429d..b19135e 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianAuthenticationServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianAuthenticationServiceConnector.cs | |||
@@ -104,6 +104,8 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
104 | OSDMap response = WebUtil.PostToService(m_serverUrl, requestArgs); | 104 | OSDMap response = WebUtil.PostToService(m_serverUrl, requestArgs); |
105 | if (response["Success"].AsBoolean() && response["Identities"] is OSDArray) | 105 | if (response["Success"].AsBoolean() && response["Identities"] is OSDArray) |
106 | { | 106 | { |
107 | bool md5hashFound = false; | ||
108 | |||
107 | OSDArray identities = (OSDArray)response["Identities"]; | 109 | OSDArray identities = (OSDArray)response["Identities"]; |
108 | for (int i = 0; i < identities.Count; i++) | 110 | for (int i = 0; i < identities.Count; i++) |
109 | { | 111 | { |
@@ -114,13 +116,19 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
114 | { | 116 | { |
115 | string credential = identity["Credential"].AsString(); | 117 | string credential = identity["Credential"].AsString(); |
116 | 118 | ||
117 | if (password == credential || "$1$" + Utils.MD5String(password) == credential) | 119 | if (password == credential || "$1$" + Utils.MD5String(password) == credential || Utils.MD5String(password) == credential) |
118 | return Authorize(principalID); | 120 | return Authorize(principalID); |
121 | |||
122 | md5hashFound = true; | ||
123 | break; | ||
119 | } | 124 | } |
120 | } | 125 | } |
121 | } | 126 | } |
122 | 127 | ||
123 | m_log.Warn("[SIMIAN AUTH CONNECTOR]: Authentication failed for " + principalID); | 128 | if (md5hashFound) |
129 | m_log.Warn("[SIMIAN AUTH CONNECTOR]: Authentication failed for " + principalID + " using md5hash $1$" + Utils.MD5String(password)); | ||
130 | else | ||
131 | m_log.Warn("[SIMIAN AUTH CONNECTOR]: Authentication failed for " + principalID + ", no md5hash identity found"); | ||
124 | } | 132 | } |
125 | else | 133 | else |
126 | { | 134 | { |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs index 696be94..c324272 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs | |||
@@ -395,7 +395,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
395 | } | 395 | } |
396 | else | 396 | else |
397 | { | 397 | { |
398 | m_log.Warn("[SIMIAN PRESENCE CONNECTOR]: Failed to retrieve sessions for " + userID + ": " + response["Message"].AsString()); | 398 | m_log.Debug("[SIMIAN PRESENCE CONNECTOR]: No session returned for " + userID + ": " + response["Message"].AsString()); |
399 | } | 399 | } |
400 | } | 400 | } |
401 | 401 | ||
diff --git a/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs b/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs index 2f9b520..1527db2 100644 --- a/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs +++ b/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs | |||
@@ -187,7 +187,7 @@ namespace OpenSim.Services.Connectors | |||
187 | return accounts; | 187 | return accounts; |
188 | } | 188 | } |
189 | 189 | ||
190 | public bool StoreUserAccount(UserAccount data) | 190 | public virtual bool StoreUserAccount(UserAccount data) |
191 | { | 191 | { |
192 | Dictionary<string, object> sendData = new Dictionary<string, object>(); | 192 | Dictionary<string, object> sendData = new Dictionary<string, object>(); |
193 | //sendData["SCOPEID"] = scopeID.ToString(); | 193 | //sendData["SCOPEID"] = scopeID.ToString(); |