diff options
author | Melanie | 2012-08-15 23:31:38 +0200 |
---|---|---|
committer | Melanie | 2012-08-15 23:31:38 +0200 |
commit | c313de630f2fec6793da2bc1f51dd54be82cb3e8 (patch) | |
tree | 5c8b5800bc1cbad6c2d882deba0ba93aac21f2b3 /OpenSim/Services/LLLoginService/LLLoginResponse.cs | |
parent | Implementing PRIM_LINK_TARGET in a non-recursive fashion (diff) | |
download | opensim-SC_OLD-c313de630f2fec6793da2bc1f51dd54be82cb3e8.zip opensim-SC_OLD-c313de630f2fec6793da2bc1f51dd54be82cb3e8.tar.gz opensim-SC_OLD-c313de630f2fec6793da2bc1f51dd54be82cb3e8.tar.bz2 opensim-SC_OLD-c313de630f2fec6793da2bc1f51dd54be82cb3e8.tar.xz |
Add a real_id field to the login response if impersonation is used. The wrapper
script needs this for proper logging.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index a4b3cbd..e2f947c 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -150,6 +150,7 @@ namespace OpenSim.Services.LLLoginService | |||
150 | private UUID agentID; | 150 | private UUID agentID; |
151 | private UUID sessionID; | 151 | private UUID sessionID; |
152 | private UUID secureSessionID; | 152 | private UUID secureSessionID; |
153 | private UUID realID; | ||
153 | 154 | ||
154 | // Login Flags | 155 | // Login Flags |
155 | private string dst; | 156 | private string dst; |
@@ -232,7 +233,7 @@ namespace OpenSim.Services.LLLoginService | |||
232 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, | 233 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, |
233 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, | 234 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, |
234 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, | 235 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, |
235 | string DSTZone) | 236 | string DSTZone, UUID realID) |
236 | : this() | 237 | : this() |
237 | { | 238 | { |
238 | FillOutInventoryData(invSkel, libService); | 239 | FillOutInventoryData(invSkel, libService); |
@@ -245,6 +246,7 @@ namespace OpenSim.Services.LLLoginService | |||
245 | AgentID = account.PrincipalID; | 246 | AgentID = account.PrincipalID; |
246 | SessionID = aCircuit.SessionID; | 247 | SessionID = aCircuit.SessionID; |
247 | SecureSessionID = aCircuit.SecureSessionID; | 248 | SecureSessionID = aCircuit.SecureSessionID; |
249 | RealID = realID; | ||
248 | Message = message; | 250 | Message = message; |
249 | BuddList = ConvertFriendListItem(friendsList); | 251 | BuddList = ConvertFriendListItem(friendsList); |
250 | StartLocation = where; | 252 | StartLocation = where; |
@@ -456,6 +458,7 @@ namespace OpenSim.Services.LLLoginService | |||
456 | SessionID = UUID.Random(); | 458 | SessionID = UUID.Random(); |
457 | SecureSessionID = UUID.Random(); | 459 | SecureSessionID = UUID.Random(); |
458 | AgentID = UUID.Random(); | 460 | AgentID = UUID.Random(); |
461 | RealID = UUID.Zero; | ||
459 | 462 | ||
460 | Hashtable InitialOutfitHash = new Hashtable(); | 463 | Hashtable InitialOutfitHash = new Hashtable(); |
461 | InitialOutfitHash["folder_name"] = "Nightclub Female"; | 464 | InitialOutfitHash["folder_name"] = "Nightclub Female"; |
@@ -499,6 +502,7 @@ namespace OpenSim.Services.LLLoginService | |||
499 | responseData["http_port"] = (Int32)SimHttpPort; | 502 | responseData["http_port"] = (Int32)SimHttpPort; |
500 | 503 | ||
501 | responseData["agent_id"] = AgentID.ToString(); | 504 | responseData["agent_id"] = AgentID.ToString(); |
505 | responseData["real_id"] = RealID.ToString(); | ||
502 | responseData["session_id"] = SessionID.ToString(); | 506 | responseData["session_id"] = SessionID.ToString(); |
503 | responseData["secure_session_id"] = SecureSessionID.ToString(); | 507 | responseData["secure_session_id"] = SecureSessionID.ToString(); |
504 | responseData["circuit_code"] = CircuitCode; | 508 | responseData["circuit_code"] = CircuitCode; |
@@ -581,6 +585,7 @@ namespace OpenSim.Services.LLLoginService | |||
581 | map["sim_ip"] = OSD.FromString(SimAddress); | 585 | map["sim_ip"] = OSD.FromString(SimAddress); |
582 | 586 | ||
583 | map["agent_id"] = OSD.FromUUID(AgentID); | 587 | map["agent_id"] = OSD.FromUUID(AgentID); |
588 | map["real_id"] = OSD.FromUUID(RealID); | ||
584 | map["session_id"] = OSD.FromUUID(SessionID); | 589 | map["session_id"] = OSD.FromUUID(SessionID); |
585 | map["secure_session_id"] = OSD.FromUUID(SecureSessionID); | 590 | map["secure_session_id"] = OSD.FromUUID(SecureSessionID); |
586 | map["circuit_code"] = OSD.FromInteger(CircuitCode); | 591 | map["circuit_code"] = OSD.FromInteger(CircuitCode); |
@@ -888,6 +893,12 @@ namespace OpenSim.Services.LLLoginService | |||
888 | set { secureSessionID = value; } | 893 | set { secureSessionID = value; } |
889 | } | 894 | } |
890 | 895 | ||
896 | public UUID RealID | ||
897 | { | ||
898 | get { return realID; } | ||
899 | set { realID = value; } | ||
900 | } | ||
901 | |||
891 | public Int32 CircuitCode | 902 | public Int32 CircuitCode |
892 | { | 903 | { |
893 | get { return circuitCode; } | 904 | get { return circuitCode; } |