aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorDahlia Trimble2009-06-27 07:49:10 +0000
committerDahlia Trimble2009-06-27 07:49:10 +0000
commit147c9bcd453fde74c13a83a323a40ec0bb571c01 (patch)
tree7592ca11178cbf9f15971741ddf80eb7f7b7b82e /OpenSim/Framework
parentUpdate svn properties. (diff)
downloadopensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.zip
opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.gz
opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.bz2
opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.xz
Make cleartext authentication case sensitive. Thanks jhurliman for spotting this.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Communications/Services/HGLoginAuthService.cs2
-rw-r--r--OpenSim/Framework/Communications/Services/LoginService.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs
index 3ab9b38..d3f813e 100644
--- a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs
+++ b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs
@@ -234,7 +234,7 @@ namespace OpenSim.Framework.Communications.Services
234 string s = Util.Md5Hash(password + ":" + profile.PasswordSalt); 234 string s = Util.Md5Hash(password + ":" + profile.PasswordSalt);
235 235
236 bool loginresult = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase) 236 bool loginresult = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase)
237 || profile.PasswordHash.Equals(password, StringComparison.InvariantCultureIgnoreCase)); 237 || profile.PasswordHash.Equals(password, StringComparison.InvariantCulture));
238 return loginresult; 238 return loginresult;
239 } 239 }
240 } 240 }
diff --git a/OpenSim/Framework/Communications/Services/LoginService.cs b/OpenSim/Framework/Communications/Services/LoginService.cs
index 7eb98d7..897c763 100644
--- a/OpenSim/Framework/Communications/Services/LoginService.cs
+++ b/OpenSim/Framework/Communications/Services/LoginService.cs
@@ -769,8 +769,8 @@ namespace OpenSim.Framework.Communications.Services
769 //m_log.Info("[LOGIN]: userprofile:" + profile.passwordHash + " SubCT:" + password); 769 //m_log.Info("[LOGIN]: userprofile:" + profile.passwordHash + " SubCT:" + password);
770 770
771 passwordSuccess = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase) 771 passwordSuccess = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase)
772 || profile.PasswordHash.Equals(password, StringComparison.InvariantCultureIgnoreCase)); 772 || profile.PasswordHash.Equals(password, StringComparison.InvariantCulture));
773 773
774 return passwordSuccess; 774 return passwordSuccess;
775 } 775 }
776 776