* Fixed names.
* Added configs for Standalone * Changed UserSericeBase to use useraccounts instead of userslimupdates
parent
81bcedda83
commit
88d2df597e
|
@ -30,8 +30,6 @@
|
|||
<RegionModule id="CenomeMemoryAssetCache" type="OpenSim.Region.CoreModules.Asset.CenomeMemoryAssetCache"/>
|
||||
<RegionModule id="LibraryModule" type="OpenSim.Region.CoreModules.Framework.Library.LibraryModule"/>
|
||||
<!-- Service connectors OUT modules -->
|
||||
<RegionModule id="LocalUserServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.User.LocalUserServicesConnector" />
|
||||
<RegionModule id="RemoteUserServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.User.RemoteUserServicesConnector" />
|
||||
<RegionModule id="LocalAssetServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset.LocalAssetServicesConnector" />
|
||||
<RegionModule id="RemoteAssetServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset.RemoteAssetServicesConnector" />
|
||||
<RegionModule id="LocalAuthorizationServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Authorization.LocalAuthorizationServicesConnector" />
|
||||
|
@ -51,8 +49,8 @@
|
|||
<RegionModule id="HGGridConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.HGGridConnector" />
|
||||
<RegionModule id="LocalPresenceServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence.LocalPresenceServicesConnector" />
|
||||
<RegionModule id="RemotePresenceServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence.RemotePresenceServicesConnector" />
|
||||
<RegionModule id="LocalUserAccountServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.User.LocalUserAccountServicesConnector" />
|
||||
<RegionModule id="RemoteUserAccountServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.User.RemoteUserAccountServicesConnector" />
|
||||
<RegionModule id="LocalUserAccountServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts.LocalUserAccountServicesConnector" />
|
||||
<RegionModule id="RemoteUserAccountServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts.RemoteUserAccountServicesConnector" />
|
||||
<!-- Service connectors IN modules -->
|
||||
<RegionModule id="AssetServiceInConnectorModule" type="OpenSim.Region.CoreModules.ServiceConnectorsIn.Asset.AssetServiceInConnectorModule" />
|
||||
<RegionModule id="InventoryServiceInConnectorModule" type="OpenSim.Region.CoreModules.ServiceConnectorsIn.Inventory.InventoryServiceInConnectorModule" />
|
||||
|
|
|
@ -37,7 +37,7 @@ using OpenSim.Services.Interfaces;
|
|||
|
||||
using OpenMetaverse;
|
||||
|
||||
namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
|
||||
namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
|
||||
{
|
||||
public class LocalUserAccountServicesConnector : ISharedRegionModule, IUserAccountService
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ using OpenSim.Region.Framework.Scenes;
|
|||
using OpenSim.Services.Interfaces;
|
||||
using OpenSim.Services.Connectors;
|
||||
|
||||
namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
|
||||
namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
|
||||
{
|
||||
public class RemoteUserAccountServicesConnector : UserAccountServicesConnector,
|
||||
ISharedRegionModule, IUserAccountService
|
||||
|
|
|
@ -40,20 +40,29 @@ namespace OpenSim.Services.UserAccountService
|
|||
|
||||
public UserAccountServiceBase(IConfigSource config) : base(config)
|
||||
{
|
||||
string dllName = String.Empty;
|
||||
string connString = String.Empty;
|
||||
string realm = "useraccounts";
|
||||
|
||||
IConfig dbConfig = config.Configs["DatabaseService"];
|
||||
if (dbConfig != null)
|
||||
{
|
||||
dllName = dbConfig.GetString("StorageProvider", String.Empty);
|
||||
connString = dbConfig.GetString("ConnectionString", String.Empty);
|
||||
}
|
||||
|
||||
IConfig userConfig = config.Configs["UserAccountService"];
|
||||
if (userConfig == null)
|
||||
throw new Exception("No UserAccountService configuration");
|
||||
|
||||
string dllName = userConfig.GetString("StorageProvider",
|
||||
String.Empty);
|
||||
dllName = userConfig.GetString("StorageProvider", dllName);
|
||||
|
||||
if (dllName == String.Empty)
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
string connString = userConfig.GetString("ConnectionString",
|
||||
String.Empty);
|
||||
connString = userConfig.GetString("ConnectionString", connString);
|
||||
|
||||
string realm = userConfig.GetString("Realm", "users");
|
||||
realm = userConfig.GetString("Realm", realm);
|
||||
|
||||
m_Database = LoadPlugin<IUserAccountData>(dllName, new Object[] {connString, realm});
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
NeighbourServices = "LocalNeighbourServicesConnector"
|
||||
AuthorizationServices = "LocalAuthorizationServicesConnector"
|
||||
GridServices = "LocalGridServicesConnector"
|
||||
PresenceServices ="LocalPresenceServicesConnector"
|
||||
PresenceServices = "LocalPresenceServicesConnector"
|
||||
UserAccountServices = "LocalUserAccountServicesConnector"
|
||||
LibraryModule = true
|
||||
|
||||
[AssetService]
|
||||
|
@ -31,3 +32,6 @@
|
|||
|
||||
[PresenceService]
|
||||
LocalServiceModule = "OpenSim.Services.PresenceService.dll:PresenceService"
|
||||
|
||||
[UserAccountService]
|
||||
LocalServiceModule = "OpenSim.Services.UserService.dll:UserAccountService"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
NeighbourServices = "RemoteNeighbourServicesConnector"
|
||||
AuthorizationServices = "LocalAuthorizationServicesConnector"
|
||||
GridServices = "HGGridServicesConnector"
|
||||
PresenceServices ="LocalPresenceServicesConnector"
|
||||
PresenceServices = "LocalPresenceServicesConnector"
|
||||
UserAccountServices = "LocalUserAccountServicesConnector"
|
||||
InventoryServiceInConnector = true
|
||||
AssetServiceInConnector = true
|
||||
HGAuthServiceInConnector = true
|
||||
|
@ -56,3 +57,6 @@
|
|||
|
||||
[PresenceService]
|
||||
LocalServiceModule = "OpenSim.Services.PresenceService.dll:PresenceService"
|
||||
|
||||
[UserAccountService]
|
||||
LocalServiceModule = "OpenSim.Services.UserService.dll:UserAccountService"
|
||||
|
|
Loading…
Reference in New Issue