aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Communications/Services/LoginService.cs36
-rw-r--r--OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs2
-rw-r--r--bin/config-include/GridCommon.ini.example5
3 files changed, 31 insertions, 12 deletions
diff --git a/OpenSim/Framework/Communications/Services/LoginService.cs b/OpenSim/Framework/Communications/Services/LoginService.cs
index a9be197..9709975 100644
--- a/OpenSim/Framework/Communications/Services/LoginService.cs
+++ b/OpenSim/Framework/Communications/Services/LoginService.cs
@@ -311,37 +311,55 @@ namespace OpenSim.Framework.Communications.Services
311 { 311 {
312 Hashtable requestData = (Hashtable)request.Params[0]; 312 Hashtable requestData = (Hashtable)request.Params[0];
313 313
314 bool GoodLogin = false;
315
316 userProfile = GetTheUser(firstname, lastname); 314 userProfile = GetTheUser(firstname, lastname);
317 if (userProfile == null) 315 if (userProfile == null)
318 { 316 {
319 m_log.Info("[LOGIN END]: XMLRPC Could not find a profile for " + firstname + " " + lastname); 317 m_log.Debug("[LOGIN END]: XMLRPC Could not find a profile for " + firstname + " " + lastname);
318 return false;
320 } 319 }
321 else 320 else
322 { 321 {
323 if (requestData.Contains("passwd")) 322 if (requestData.Contains("passwd"))
324 { 323 {
325 string passwd = (string)requestData["passwd"]; 324 string passwd = (string)requestData["passwd"];
326 GoodLogin = AuthenticateUser(userProfile, passwd); 325 bool authenticated = AuthenticateUser(userProfile, passwd);
326
327 if (!authenticated)
328 m_log.DebugFormat("[LOGIN END]: XMLRPC User {0} {1} failed password authentication",
329 firstname, lastname);
330
331 return authenticated;
327 } 332 }
328 if (!GoodLogin && (requestData.Contains("web_login_key"))) 333
334 if (requestData.Contains("web_login_key"))
329 { 335 {
330 try 336 try
331 { 337 {
332 UUID webloginkey = new UUID((string)requestData["web_login_key"]); 338 UUID webloginkey = new UUID((string)requestData["web_login_key"]);
333 GoodLogin = AuthenticateUser(userProfile, webloginkey); 339 bool authenticated = AuthenticateUser(userProfile, webloginkey);
340
341 if (!authenticated)
342 m_log.DebugFormat("[LOGIN END]: XMLRPC User {0} {1} failed web login key authentication",
343 firstname, lastname);
344
345 return authenticated;
334 } 346 }
335 catch (Exception e) 347 catch (Exception e)
336 { 348 {
337 m_log.InfoFormat( 349 m_log.DebugFormat(
338 "[LOGIN END]: XMLRPC Bad web_login_key: {0} for user {1} {2}, exception {3}", 350 "[LOGIN END]: XMLRPC Bad web_login_key: {0} for user {1} {2}, exception {3}",
339 requestData["web_login_key"], firstname, lastname, e); 351 requestData["web_login_key"], firstname, lastname, e);
352
353 return false;
340 } 354 }
341 } 355 }
356
357 m_log.DebugFormat(
358 "[LOGIN END]: XMLRPC login request for {0} {1} contained neither a password nor a web login key",
359 firstname, lastname);
342 } 360 }
343 361
344 return GoodLogin; 362 return false;
345 } 363 }
346 364
347 protected virtual bool TryAuthenticateLLSDLogin(string firstname, string lastname, string passwd, out UserProfileData userProfile) 365 protected virtual bool TryAuthenticateLLSDLogin(string firstname, string lastname, string passwd, out UserProfileData userProfile)
diff --git a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
index 093ce92..50ce3ea 100644
--- a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
@@ -68,7 +68,7 @@ namespace OpenSim.Services.Connectors
68 if (inventoryConfig == null) 68 if (inventoryConfig == null)
69 { 69 {
70 m_log.Error("[INVENTORY CONNECTOR]: InventoryService missing from OpenSim.ini"); 70 m_log.Error("[INVENTORY CONNECTOR]: InventoryService missing from OpenSim.ini");
71 throw new Exception("Inventory connector init error"); 71 throw new Exception("InventoryService missing from OpenSim.ini");
72 } 72 }
73 73
74 string serviceURI = inventoryConfig.GetString("InventoryServerURI", 74 string serviceURI = inventoryConfig.GetString("InventoryServerURI",
diff --git a/bin/config-include/GridCommon.ini.example b/bin/config-include/GridCommon.ini.example
index ff324ce..3a8ec35 100644
--- a/bin/config-include/GridCommon.ini.example
+++ b/bin/config-include/GridCommon.ini.example
@@ -8,11 +8,12 @@
8 ; 8 ;
9 AssetServerURI = "http://myassetserver.com:8003" 9 AssetServerURI = "http://myassetserver.com:8003"
10 10
11
11[InventoryService] 12[InventoryService]
12 ; 13 ;
13 ; change this to your grid-wide asset server 14 ; change this to your grid-wide inventory server
14 ; 15 ;
15 InventoryServerURI = "http://myassetserver.com:8004" 16 InventoryServerURI = "http://myinventoryserver.com:8004"
16 17
17 18
18[Modules] 19[Modules]