aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMW2008-07-08 15:36:27 +0000
committerMW2008-07-08 15:36:27 +0000
commit9a5a7b2614e019e5285beba9fb8f6c7be00e4b43 (patch)
tree3ff72499dd4645978e0e61cbc9b14a5a0e67f091 /OpenSim/Framework
parentMantis#1690. Thank you kindly, Melanie for a patch that: (diff)
downloadopensim-SC-9a5a7b2614e019e5285beba9fb8f6c7be00e4b43.zip
opensim-SC-9a5a7b2614e019e5285beba9fb8f6c7be00e4b43.tar.gz
opensim-SC-9a5a7b2614e019e5285beba9fb8f6c7be00e4b43.tar.bz2
opensim-SC-9a5a7b2614e019e5285beba9fb8f6c7be00e4b43.tar.xz
Added option to userserver config, to be able disable/enable the LLSD Login support. As far as I know, the LLSD login method is currently only used by libsl based clients/bots. So could be useful to be able to disable this if a grid comes under a griefing attack from libsl bots.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/UserConfig.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Framework/UserConfig.cs b/OpenSim/Framework/UserConfig.cs
index 3cb0503..c7317ca 100644
--- a/OpenSim/Framework/UserConfig.cs
+++ b/OpenSim/Framework/UserConfig.cs
@@ -49,6 +49,8 @@ namespace OpenSim.Framework
49 public bool HttpSSL = DefaultHttpSSL; 49 public bool HttpSSL = DefaultHttpSSL;
50 public string InventoryUrl = String.Empty; 50 public string InventoryUrl = String.Empty;
51 51
52 public bool EnableLLSDLogin = true;
53
52 public UserConfig() 54 public UserConfig()
53 { 55 {
54 // weird, but UserManagerBase needs this. 56 // weird, but UserManagerBase needs this.
@@ -93,6 +95,8 @@ namespace OpenSim.Framework
93 "Known good region X", "1000", false); 95 "Known good region X", "1000", false);
94 configMember.addConfigurationOption("default_Y", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, 96 configMember.addConfigurationOption("default_Y", ConfigurationOption.ConfigurationTypes.TYPE_UINT32,
95 "Known good region Y", "1000", false); 97 "Known good region Y", "1000", false);
98 configMember.addConfigurationOption("enable_llsd_login", ConfigurationOption.ConfigurationTypes.TYPE_BOOLEAN,
99 "Enable LLSD login support? true/false", true.ToString(), false);
96 } 100 }
97 101
98 public bool handleIncomingConfiguration(string configuration_key, object configuration_result) 102 public bool handleIncomingConfiguration(string configuration_key, object configuration_result)
@@ -132,6 +136,9 @@ namespace OpenSim.Framework
132 case "default_Y": 136 case "default_Y":
133 DefaultY = (uint) configuration_result; 137 DefaultY = (uint) configuration_result;
134 break; 138 break;
139 case "enable_llsd_login":
140 EnableLLSDLogin = (bool)configuration_result;
141 break;
135 } 142 }
136 143
137 return true; 144 return true;