aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
authordiva2009-03-30 19:35:55 +0000
committerdiva2009-03-30 19:35:55 +0000
commitb73ce1143a6d8000f682abed6bc516504cf8ab33 (patch)
tree5fca31957d89734f0240b5578d40507724140f78 /OpenSim/Grid
parentHGInventoryService now uses the actual authority portion of the user's key to... (diff)
downloadopensim-SC-b73ce1143a6d8000f682abed6bc516504cf8ab33.zip
opensim-SC-b73ce1143a6d8000f682abed6bc516504cf8ab33.tar.gz
opensim-SC-b73ce1143a6d8000f682abed6bc516504cf8ab33.tar.bz2
opensim-SC-b73ce1143a6d8000f682abed6bc516504cf8ab33.tar.xz
Adds support at the inventory server for direct inventory manipulation from authorized clients using capabilities. Provided keys are verified with the designated authority. The added code is only executed for clients following HGLoginAuth procedure or similar. It does not remove any existing behavior.
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r--OpenSim/Grid/InventoryServer/Main.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Grid/InventoryServer/Main.cs b/OpenSim/Grid/InventoryServer/Main.cs
index e4cd446..07fb19c 100644
--- a/OpenSim/Grid/InventoryServer/Main.cs
+++ b/OpenSim/Grid/InventoryServer/Main.cs
@@ -33,6 +33,7 @@ using log4net;
33using log4net.Config; 33using log4net.Config;
34using OpenMetaverse; 34using OpenMetaverse;
35using OpenSim.Framework; 35using OpenSim.Framework;
36using OpenSim.Framework.Communications.Services;
36using OpenSim.Framework.Console; 37using OpenSim.Framework.Console;
37using OpenSim.Framework.Servers; 38using OpenSim.Framework.Servers;
38 39
@@ -43,6 +44,7 @@ namespace OpenSim.Grid.InventoryServer
43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 44 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44 45
45 private GridInventoryService m_inventoryService; 46 private GridInventoryService m_inventoryService;
47 private HGInventoryService m_directInventoryService;
46 48
47 public const string LogName = "INVENTORY"; 49 public const string LogName = "INVENTORY";
48 50
@@ -70,14 +72,19 @@ namespace OpenSim.Grid.InventoryServer
70 m_inventoryService.DoLookup = config.SessionLookUp; 72 m_inventoryService.DoLookup = config.SessionLookUp;
71 m_inventoryService.AddPlugin(config.DatabaseProvider, config.DatabaseConnect); 73 m_inventoryService.AddPlugin(config.DatabaseProvider, config.DatabaseConnect);
72 74
75
73 m_log.Info("[" + LogName + "]: Starting HTTP server ..."); 76 m_log.Info("[" + LogName + "]: Starting HTTP server ...");
74 77
75 m_httpServer = new BaseHttpServer(config.HttpPort); 78 m_httpServer = new BaseHttpServer(config.HttpPort);
76 AddHttpHandlers(); 79 if (config.RegionAccessToAgentsInventory)
80 AddHttpHandlers();
81
77 m_httpServer.Start(); 82 m_httpServer.Start();
78 83
79 m_log.Info("[" + LogName + "]: Started HTTP server"); 84 m_log.Info("[" + LogName + "]: Started HTTP server");
80 85
86 m_directInventoryService = new HGInventoryService(m_inventoryService, config.AssetServerURL, config.UserServerURL, m_httpServer, config.InventoryServerURL);
87
81 base.StartupSpecific(); 88 base.StartupSpecific();
82 89
83 m_console.Commands.AddCommand("inventoryserver", false, "add user", 90 m_console.Commands.AddCommand("inventoryserver", false, "add user",