aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs29
1 files changed, 16 insertions, 13 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
index 3a35d9a..bb0ac57 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
@@ -77,22 +77,25 @@ namespace OpenSim.Services.Connectors.SimianGrid
77 77
78 public void Initialise(IConfigSource source) 78 public void Initialise(IConfigSource source)
79 { 79 {
80 IConfig assetConfig = source.Configs["UserAccountService"]; 80 if (Simian.IsSimianEnabled(source, "UserAccountServices"))
81 if (assetConfig == null)
82 { 81 {
83 m_log.Error("[ACCOUNT CONNECTOR]: UserAccountService missing from OpenSim.ini"); 82 IConfig assetConfig = source.Configs["UserAccountService"];
84 throw new Exception("User account connector init error"); 83 if (assetConfig == null)
85 } 84 {
85 m_log.Error("[ACCOUNT CONNECTOR]: UserAccountService missing from OpenSim.ini");
86 throw new Exception("User account connector init error");
87 }
86 88
87 string serviceURI = assetConfig.GetString("UserAccountServerURI"); 89 string serviceURI = assetConfig.GetString("UserAccountServerURI");
88 if (String.IsNullOrEmpty(serviceURI)) 90 if (String.IsNullOrEmpty(serviceURI))
89 { 91 {
90 m_log.Info("[ACCOUNT CONNECTOR]: No UserAccountServerURI in section UserAccountService, skipping SimianUserAccountServiceConnector"); 92 m_log.Error("[ACCOUNT CONNECTOR]: No UserAccountServerURI in section UserAccountService, skipping SimianUserAccountServiceConnector");
91 return; 93 throw new Exception("User account connector init error");
92 } 94 }
93 95
94 m_accountCache = new ExpiringCache<UUID, UserAccount>(); 96 m_accountCache = new ExpiringCache<UUID, UserAccount>();
95 m_serverUrl = serviceURI; 97 m_serverUrl = serviceURI;
98 }
96 } 99 }
97 100
98 public UserAccount GetUserAccount(UUID scopeID, string firstName, string lastName) 101 public UserAccount GetUserAccount(UUID scopeID, string firstName, string lastName)