mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
Fix Simian regression
This commit is contained in:
@@ -69,7 +69,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
|
||||
public SimianAuthenticationServiceConnector(IConfigSource source)
|
||||
{
|
||||
Initialise(source);
|
||||
CommonInit(source);
|
||||
}
|
||||
|
||||
public void Initialise(IConfigSource source)
|
||||
@@ -79,24 +79,27 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
{
|
||||
string name = moduleConfig.GetString("AuthenticationServices", "");
|
||||
if (name == Name)
|
||||
{
|
||||
IConfig gridConfig = source.Configs["AuthenticationService"];
|
||||
if (gridConfig != null)
|
||||
{
|
||||
string serviceUrl = gridConfig.GetString("AuthenticationServerURI");
|
||||
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 AUTH CONNECTOR]: No AuthenticationServerURI specified, disabling connector");
|
||||
private void CommonInit(IConfigSource source)
|
||||
{
|
||||
IConfig gridConfig = source.Configs["AuthenticationService"];
|
||||
if (gridConfig != null)
|
||||
{
|
||||
string serviceUrl = gridConfig.GetString("AuthenticationServerURI");
|
||||
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 AUTH CONNECTOR]: No AuthenticationServerURI specified, disabling connector");
|
||||
}
|
||||
|
||||
public string Authenticate(UUID principalID, string password, int lifetime)
|
||||
|
||||
Reference in New Issue
Block a user