* minor: Make GridCommon.ini.example refer to inventory service rather than asset where appropriate

* Send debug level notice to console if a user fails authentication
trunk
Justin Clarke Casey 2009-07-10 18:40:37 +00:00
parent 78d7f4696e
commit 148e2d55fa
3 changed files with 31 additions and 12 deletions

View File

@ -311,37 +311,55 @@ namespace OpenSim.Framework.Communications.Services
{
Hashtable requestData = (Hashtable)request.Params[0];
bool GoodLogin = false;
userProfile = GetTheUser(firstname, lastname);
if (userProfile == null)
{
m_log.Info("[LOGIN END]: XMLRPC Could not find a profile for " + firstname + " " + lastname);
m_log.Debug("[LOGIN END]: XMLRPC Could not find a profile for " + firstname + " " + lastname);
return false;
}
else
{
if (requestData.Contains("passwd"))
{
string passwd = (string)requestData["passwd"];
GoodLogin = AuthenticateUser(userProfile, passwd);
bool authenticated = AuthenticateUser(userProfile, passwd);
if (!authenticated)
m_log.DebugFormat("[LOGIN END]: XMLRPC User {0} {1} failed password authentication",
firstname, lastname);
return authenticated;
}
if (!GoodLogin && (requestData.Contains("web_login_key")))
if (requestData.Contains("web_login_key"))
{
try
{
UUID webloginkey = new UUID((string)requestData["web_login_key"]);
GoodLogin = AuthenticateUser(userProfile, webloginkey);
bool authenticated = AuthenticateUser(userProfile, webloginkey);
if (!authenticated)
m_log.DebugFormat("[LOGIN END]: XMLRPC User {0} {1} failed web login key authentication",
firstname, lastname);
return authenticated;
}
catch (Exception e)
{
m_log.InfoFormat(
m_log.DebugFormat(
"[LOGIN END]: XMLRPC Bad web_login_key: {0} for user {1} {2}, exception {3}",
requestData["web_login_key"], firstname, lastname, e);
}
return false;
}
}
return GoodLogin;
m_log.DebugFormat(
"[LOGIN END]: XMLRPC login request for {0} {1} contained neither a password nor a web login key",
firstname, lastname);
}
return false;
}
protected virtual bool TryAuthenticateLLSDLogin(string firstname, string lastname, string passwd, out UserProfileData userProfile)

View File

@ -68,7 +68,7 @@ namespace OpenSim.Services.Connectors
if (inventoryConfig == null)
{
m_log.Error("[INVENTORY CONNECTOR]: InventoryService missing from OpenSim.ini");
throw new Exception("Inventory connector init error");
throw new Exception("InventoryService missing from OpenSim.ini");
}
string serviceURI = inventoryConfig.GetString("InventoryServerURI",

View File

@ -8,11 +8,12 @@
;
AssetServerURI = "http://myassetserver.com:8003"
[InventoryService]
;
; change this to your grid-wide asset server
; change this to your grid-wide inventory server
;
InventoryServerURI = "http://myassetserver.com:8004"
InventoryServerURI = "http://myinventoryserver.com:8004"
[Modules]