diff options
author | Justin Clark-Casey (justincc) | 2010-03-12 22:49:16 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-03-12 22:49:16 +0000 |
commit | 6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5 (patch) | |
tree | 92e96744a5513db89b74ff8cd6e8f443e0c874f7 /OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs | |
parent | refactor: move RezSingleAttachmentFromInventory() from SceneGraph to Attachme... (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.zip opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.gz opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.bz2 opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.xz |
Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs')
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs | 29 |
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) |