aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenGridServices/OpenGridServices.UserServer/UserManager.cs')
-rw-r--r--OpenGridServices/OpenGridServices.UserServer/UserManager.cs23
1 files changed, 11 insertions, 12 deletions
diff --git a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
index 21ecc50..7dd404d 100644
--- a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
+++ b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
@@ -27,10 +27,10 @@ namespace OpenGridServices.UserServer
27 /// <param name="FileName">The filename to the user server plugin DLL</param> 27 /// <param name="FileName">The filename to the user server plugin DLL</param>
28 public void AddPlugin(string FileName) 28 public void AddPlugin(string FileName)
29 { 29 {
30 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Userstorage: Attempting to load " + FileName); 30 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Userstorage: Attempting to load " + FileName);
31 Assembly pluginAssembly = Assembly.LoadFrom(FileName); 31 Assembly pluginAssembly = Assembly.LoadFrom(FileName);
32 32
33 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Userstorage: Found " + pluginAssembly.GetTypes().Length + " interfaces."); 33 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Userstorage: Found " + pluginAssembly.GetTypes().Length + " interfaces.");
34 foreach (Type pluginType in pluginAssembly.GetTypes()) 34 foreach (Type pluginType in pluginAssembly.GetTypes())
35 { 35 {
36 if (!pluginType.IsAbstract) 36 if (!pluginType.IsAbstract)
@@ -42,7 +42,7 @@ namespace OpenGridServices.UserServer
42 IUserData plug = (IUserData)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); 42 IUserData plug = (IUserData)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
43 plug.Initialise(); 43 plug.Initialise();
44 this._plugins.Add(plug.getName(), plug); 44 this._plugins.Add(plug.getName(), plug);
45 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Userstorage: Added IUserData Interface"); 45 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Userstorage: Added IUserData Interface");
46 } 46 }
47 47
48 typeInterface = null; 48 typeInterface = null;
@@ -78,7 +78,7 @@ namespace OpenGridServices.UserServer
78 } 78 }
79 catch (Exception e) 79 catch (Exception e)
80 { 80 {
81 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); 81 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")");
82 } 82 }
83 } 83 }
84 } 84 }
@@ -100,7 +100,7 @@ namespace OpenGridServices.UserServer
100 } 100 }
101 catch (Exception e) 101 catch (Exception e)
102 { 102 {
103 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); 103 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")");
104 } 104 }
105 } 105 }
106 106
@@ -125,7 +125,7 @@ namespace OpenGridServices.UserServer
125 } 125 }
126 catch (Exception e) 126 catch (Exception e)
127 { 127 {
128 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); 128 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")");
129 } 129 }
130 } 130 }
131 131
@@ -157,7 +157,7 @@ namespace OpenGridServices.UserServer
157 } 157 }
158 catch (Exception e) 158 catch (Exception e)
159 { 159 {
160 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); 160 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")");
161 } 161 }
162 } 162 }
163 163
@@ -179,7 +179,7 @@ namespace OpenGridServices.UserServer
179 } 179 }
180 catch (Exception e) 180 catch (Exception e)
181 { 181 {
182 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); 182 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")");
183 } 183 }
184 } 184 }
185 185
@@ -201,7 +201,7 @@ namespace OpenGridServices.UserServer
201 } 201 }
202 catch (Exception e) 202 catch (Exception e)
203 { 203 {
204 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); 204 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")");
205 } 205 }
206 } 206 }
207 207
@@ -224,7 +224,7 @@ namespace OpenGridServices.UserServer
224 } 224 }
225 catch (Exception e) 225 catch (Exception e)
226 { 226 {
227 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); 227 OpenSim.Framework.Console.MainConsole.Instance.Verbose( "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")");
228 } 228 }
229 } 229 }
230 230
@@ -348,8 +348,7 @@ namespace OpenGridServices.UserServer
348 /// <returns>Authenticated?</returns> 348 /// <returns>Authenticated?</returns>
349 public bool AuthenticateUser(ref UserProfileData profile, string password) 349 public bool AuthenticateUser(ref UserProfileData profile, string password)
350 { 350 {
351 OpenSim.Framework.Console.MainConsole.Instance.WriteLine( 351 OpenSim.Framework.Console.MainConsole.Instance.Verbose(
352 OpenSim.Framework.Console.LogPriority.LOW,
353 "Authenticating " + profile.username + " " + profile.surname); 352 "Authenticating " + profile.username + " " + profile.surname);
354 353
355 password = password.Remove(0, 3); //remove $1$ 354 password = password.Remove(0, 3); //remove $1$