diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/InterGrid')
-rw-r--r-- | OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs | 19 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs | 42 |
2 files changed, 31 insertions, 30 deletions
diff --git a/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs b/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs index 0f2ba32..b7d3904 100644 --- a/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs +++ b/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs | |||
@@ -46,7 +46,6 @@ namespace OpenSim.Region.CoreModules.InterGrid | |||
46 | { | 46 | { |
47 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 47 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
48 | private readonly List<Scene> m_scenes = new List<Scene>(); | 48 | private readonly List<Scene> m_scenes = new List<Scene>(); |
49 | private CommunicationsManager m_com; | ||
50 | private IConfigSource m_settings; | 49 | private IConfigSource m_settings; |
51 | 50 | ||
52 | #region Implementation of IRegionModuleBase | 51 | #region Implementation of IRegionModuleBase |
@@ -88,7 +87,6 @@ namespace OpenSim.Region.CoreModules.InterGrid | |||
88 | { | 87 | { |
89 | if (m_settings.Configs["Startup"].GetBoolean("gridmode", false)) | 88 | if (m_settings.Configs["Startup"].GetBoolean("gridmode", false)) |
90 | { | 89 | { |
91 | m_com = m_scenes[0].CommsManager; | ||
92 | MainServer.Instance.AddXmlRPCHandler("grid_message", GridWideMessage); | 90 | MainServer.Instance.AddXmlRPCHandler("grid_message", GridWideMessage); |
93 | } | 91 | } |
94 | } | 92 | } |
@@ -119,14 +117,15 @@ namespace OpenSim.Region.CoreModules.InterGrid | |||
119 | 117 | ||
120 | Hashtable requestData = (Hashtable)req.Params[0]; | 118 | Hashtable requestData = (Hashtable)req.Params[0]; |
121 | 119 | ||
122 | if ((!requestData.Contains("password") || (string)requestData["password"] != m_com.NetworkServersInfo.GridRecvKey)) | 120 | // REFACTORING PROBLEM. This authorization needs to be replaced with some other |
123 | { | 121 | //if ((!requestData.Contains("password") || (string)requestData["password"] != m_com.NetworkServersInfo.GridRecvKey)) |
124 | responseData["accepted"] = false; | 122 | //{ |
125 | responseData["success"] = false; | 123 | // responseData["accepted"] = false; |
126 | responseData["error"] = "Invalid Key"; | 124 | // responseData["success"] = false; |
127 | response.Value = responseData; | 125 | // responseData["error"] = "Invalid Key"; |
128 | return response; | 126 | // response.Value = responseData; |
129 | } | 127 | // return response; |
128 | //} | ||
130 | 129 | ||
131 | string message = (string)requestData["message"]; | 130 | string message = (string)requestData["message"]; |
132 | string user = (string)requestData["user"]; | 131 | string user = (string)requestData["user"]; |
diff --git a/OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs index 10a3232..8cf4619 100644 --- a/OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs +++ b/OpenSim/Region/CoreModules/InterGrid/OpenGridProtocolModule.cs | |||
@@ -528,32 +528,34 @@ namespace OpenSim.Region.CoreModules.InterGrid | |||
528 | userProfile.PasswordHash = "$1$"; | 528 | userProfile.PasswordHash = "$1$"; |
529 | userProfile.PasswordSalt = ""; | 529 | userProfile.PasswordSalt = ""; |
530 | userProfile.SurName = agentData.lastname; | 530 | userProfile.SurName = agentData.lastname; |
531 | userProfile.UserAssetURI = homeScene.CommsManager.NetworkServersInfo.AssetURL; | 531 | //userProfile.UserAssetURI = homeScene.CommsManager.NetworkServersInfo.AssetURL; |
532 | userProfile.UserFlags = 0; | 532 | userProfile.UserFlags = 0; |
533 | userProfile.UserInventoryURI = homeScene.CommsManager.NetworkServersInfo.InventoryURL; | 533 | //userProfile.UserInventoryURI = homeScene.CommsManager.NetworkServersInfo.InventoryURL; |
534 | userProfile.WantDoMask = 0; | 534 | userProfile.WantDoMask = 0; |
535 | userProfile.WebLoginKey = UUID.Random(); | 535 | userProfile.WebLoginKey = UUID.Random(); |
536 | 536 | ||
537 | // Do caps registration | 537 | // !!! REFACTORING PROBLEM. This needs to be changed for 0.7 |
538 | // get seed capagentData.firstname = FirstName;agentData.lastname = LastName; | 538 | // |
539 | if (homeScene.CommsManager.UserService.GetUserProfile(agentData.AgentID) == null && !GridMode) | 539 | //// Do caps registration |
540 | { | 540 | //// get seed capagentData.firstname = FirstName;agentData.lastname = LastName; |
541 | homeScene.CommsManager.UserAdminService.AddUser( | 541 | //if (homeScene.CommsManager.UserService.GetUserProfile(agentData.AgentID) == null && !GridMode) |
542 | agentData.firstname, agentData.lastname, CreateRandomStr(7), "", | 542 | //{ |
543 | homeScene.RegionInfo.RegionLocX, homeScene.RegionInfo.RegionLocY, agentData.AgentID); | 543 | // homeScene.CommsManager.UserAdminService.AddUser( |
544 | // agentData.firstname, agentData.lastname, CreateRandomStr(7), "", | ||
545 | // homeScene.RegionInfo.RegionLocX, homeScene.RegionInfo.RegionLocY, agentData.AgentID); | ||
544 | 546 | ||
545 | UserProfileData userProfile2 = homeScene.CommsManager.UserService.GetUserProfile(agentData.AgentID); | 547 | // UserProfileData userProfile2 = homeScene.CommsManager.UserService.GetUserProfile(agentData.AgentID); |
546 | if (userProfile2 != null) | 548 | // if (userProfile2 != null) |
547 | { | 549 | // { |
548 | userProfile = userProfile2; | 550 | // userProfile = userProfile2; |
549 | userProfile.AboutText = "OGP USER"; | 551 | // userProfile.AboutText = "OGP USER"; |
550 | userProfile.FirstLifeAboutText = "OGP USER"; | 552 | // userProfile.FirstLifeAboutText = "OGP USER"; |
551 | homeScene.CommsManager.UserService.UpdateUserProfile(userProfile); | 553 | // homeScene.CommsManager.UserService.UpdateUserProfile(userProfile); |
552 | } | 554 | // } |
553 | } | 555 | //} |
554 | 556 | ||
555 | // Stick our data in the cache so the region will know something about us | 557 | //// Stick our data in the cache so the region will know something about us |
556 | homeScene.CommsManager.UserProfileCacheService.PreloadUserCache(userProfile); | 558 | //homeScene.CommsManager.UserProfileCacheService.PreloadUserCache(userProfile); |
557 | 559 | ||
558 | // Call 'new user' event handler | 560 | // Call 'new user' event handler |
559 | string reason; | 561 | string reason; |