mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:17:46 +08:00
Fix Simian regression
This commit is contained in:
@@ -73,7 +73,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
|
||||
public SimianUserAccountServiceConnector(IConfigSource source)
|
||||
{
|
||||
Initialise(source);
|
||||
CommonInit(source);
|
||||
}
|
||||
|
||||
public void Initialise(IConfigSource source)
|
||||
@@ -83,24 +83,27 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
{
|
||||
string name = moduleConfig.GetString("UserAccountServices", "");
|
||||
if (name == Name)
|
||||
{
|
||||
IConfig gridConfig = source.Configs["UserAccountService"];
|
||||
if (gridConfig != null)
|
||||
{
|
||||
string serviceUrl = gridConfig.GetString("UserAccountServerURI");
|
||||
if (!String.IsNullOrEmpty(serviceUrl))
|
||||
{
|
||||
if (!serviceUrl.EndsWith("/") && !serviceUrl.EndsWith("="))
|
||||
serviceUrl = serviceUrl + '/';
|
||||
m_serverUrl = serviceUrl;
|
||||
m_Enabled = true;
|
||||
}
|
||||
}
|
||||
CommonInit(source);
|
||||
}
|
||||
}
|
||||
|
||||
if (String.IsNullOrEmpty(m_serverUrl))
|
||||
m_log.Info("[SIMIAN ACCOUNT CONNECTOR]: No UserAccountServerURI specified, disabling connector");
|
||||
private void CommonInit(IConfigSource source)
|
||||
{
|
||||
IConfig gridConfig = source.Configs["UserAccountService"];
|
||||
if (gridConfig != null)
|
||||
{
|
||||
string serviceUrl = gridConfig.GetString("UserAccountServerURI");
|
||||
if (!String.IsNullOrEmpty(serviceUrl))
|
||||
{
|
||||
if (!serviceUrl.EndsWith("/") && !serviceUrl.EndsWith("="))
|
||||
serviceUrl = serviceUrl + '/';
|
||||
m_serverUrl = serviceUrl;
|
||||
m_Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (String.IsNullOrEmpty(m_serverUrl))
|
||||
m_log.Info("[SIMIAN ACCOUNT CONNECTOR]: No UserAccountServerURI specified, disabling connector");
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, string firstName, string lastName)
|
||||
|
||||
Reference in New Issue
Block a user