* minor: Make GridCommon.ini.example refer to inventory service rather than asset where appropriate
* Send debug level notice to console if a user fails authenticationtrunk
parent
78d7f4696e
commit
148e2d55fa
|
@ -311,37 +311,55 @@ namespace OpenSim.Framework.Communications.Services
|
||||||
{
|
{
|
||||||
Hashtable requestData = (Hashtable)request.Params[0];
|
Hashtable requestData = (Hashtable)request.Params[0];
|
||||||
|
|
||||||
bool GoodLogin = false;
|
|
||||||
|
|
||||||
userProfile = GetTheUser(firstname, lastname);
|
userProfile = GetTheUser(firstname, lastname);
|
||||||
if (userProfile == null)
|
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
|
else
|
||||||
{
|
{
|
||||||
if (requestData.Contains("passwd"))
|
if (requestData.Contains("passwd"))
|
||||||
{
|
{
|
||||||
string passwd = (string)requestData["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
|
try
|
||||||
{
|
{
|
||||||
UUID webloginkey = new UUID((string)requestData["web_login_key"]);
|
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)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.InfoFormat(
|
m_log.DebugFormat(
|
||||||
"[LOGIN END]: XMLRPC Bad web_login_key: {0} for user {1} {2}, exception {3}",
|
"[LOGIN END]: XMLRPC Bad web_login_key: {0} for user {1} {2}, exception {3}",
|
||||||
requestData["web_login_key"], firstname, lastname, e);
|
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)
|
protected virtual bool TryAuthenticateLLSDLogin(string firstname, string lastname, string passwd, out UserProfileData userProfile)
|
||||||
|
|
|
@ -68,7 +68,7 @@ namespace OpenSim.Services.Connectors
|
||||||
if (inventoryConfig == null)
|
if (inventoryConfig == null)
|
||||||
{
|
{
|
||||||
m_log.Error("[INVENTORY CONNECTOR]: InventoryService missing from OpenSim.ini");
|
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",
|
string serviceURI = inventoryConfig.GetString("InventoryServerURI",
|
||||||
|
|
|
@ -8,11 +8,12 @@
|
||||||
;
|
;
|
||||||
AssetServerURI = "http://myassetserver.com:8003"
|
AssetServerURI = "http://myassetserver.com:8003"
|
||||||
|
|
||||||
|
|
||||||
[InventoryService]
|
[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]
|
[Modules]
|
||||||
|
|
Loading…
Reference in New Issue