aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
diff options
context:
space:
mode:
authoronefang2020-09-09 04:33:43 +1000
committeronefang2020-09-09 04:33:43 +1000
commit0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d (patch)
tree2abffa5e6450eb654f1aa21f9ed46d5cf7a4d7c1 /OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
parentUpdate version number stuff, and hack it into the money display. (diff)
downloadopensim-SC-0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d.zip
opensim-SC-0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d.tar.gz
opensim-SC-0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d.tar.bz2
opensim-SC-0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d.tar.xz
Various logging fix ups.
Mostly removing console spam. Swap a bunch of info / debug logs. Better archiver console spam. Have some "avatar has left" mesasge hit the INFO console. Tweak the login logging a bit, especially for impersonations. Default to INFO on the console and DEBUG in the log files. More time stamp resolution. Better sim startup console notification. Attempt to render "[LLUDPSERVER]: Malformed data, cannot parse" into something human readable as an aid to diagnosis. Beats hand translating the big block of hex codes it was spewing. Better sim startup finished messages. Inform neighbours we are up before the finished messages. Always send the "[RegionReady]: INITIALIZATION COMPLETE FOR" message.
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
index 0204699..aef3e9f 100644
--- a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
+++ b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
@@ -87,6 +87,7 @@ namespace OpenSim.Services.AuthenticationService
87 if (!data.Data.ContainsKey("passwordHash") || 87 if (!data.Data.ContainsKey("passwordHash") ||
88 !data.Data.ContainsKey("passwordSalt")) 88 !data.Data.ContainsKey("passwordSalt"))
89 { 89 {
90 m_log.DebugFormat("[AUTH SERVICE]: No credentials.");
90 return String.Empty; 91 return String.Empty;
91 } 92 }
92 93
@@ -109,9 +110,12 @@ namespace OpenSim.Services.AuthenticationService
109 int impersonateFlag = 1 << 6; 110 int impersonateFlag = 1 << 6;
110 111
111 if ((user.UserFlags & impersonateFlag) == 0) 112 if ((user.UserFlags & impersonateFlag) == 0)
113 {
114 m_log.DebugFormat("[AUTH SERVICE]: Not trying impersonation {0} {1}.", user.UserFlags, impersonateFlag);
112 return String.Empty; 115 return String.Empty;
116 }
113 117
114 m_log.DebugFormat("[PASS AUTH]: Attempting impersonation"); 118 m_log.DebugFormat("[PASS AUTH]: Attempting impersonation.");
115 119
116 List<UserAccount> accounts = m_UserAccountService.GetUserAccountsWhere(UUID.Zero, "UserLevel >= 200"); 120 List<UserAccount> accounts = m_UserAccountService.GetUserAccountsWhere(UUID.Zero, "UserLevel >= 200");
117 if (accounts == null || accounts.Count == 0) 121 if (accounts == null || accounts.Count == 0)
@@ -134,7 +138,7 @@ namespace OpenSim.Services.AuthenticationService
134 138
135 if (data.Data["passwordHash"].ToString() == hashed) 139 if (data.Data["passwordHash"].ToString() == hashed)
136 { 140 {
137 m_log.DebugFormat("[PASS AUTH]: {0} {1} impersonating {2}, proceeding with login", a.FirstName, a.LastName, principalID); 141 m_log.InfoFormat("[PASS AUTH]: {0} {1} impersonating {2}, proceeding with login", a.FirstName, a.LastName, principalID);
138 realID = a.PrincipalID; 142 realID = a.PrincipalID;
139 return GetToken(principalID, lifetime); 143 return GetToken(principalID, lifetime);
140 } 144 }
@@ -146,7 +150,7 @@ namespace OpenSim.Services.AuthenticationService
146// } 150// }
147 } 151 }
148 152
149 m_log.DebugFormat("[PASS AUTH]: Impersonation of {0} failed", principalID); 153 m_log.InfoFormat("[PASS AUTH]: Impersonation of {0} failed", principalID);
150 return String.Empty; 154 return String.Empty;
151 } 155 }
152 } 156 }