Add logging of connect/disconnect times

on connection, client IP and name are passed from xrdp to sesman to
sesexec, and then back to sesman again.

xrdp-sesadmin can now access the connection data from sesman
This commit is contained in:
matt335672
2025-07-17 14:52:27 +01:00
parent ac95cdffc3
commit cd98b013f1
15 changed files with 367 additions and 39 deletions
+8
View File
@@ -421,6 +421,8 @@ scp_get_create_session_response(struct trans *trans,
*
* @param trans SCP transport
* @param guid Session guid
* @param client_ip IP address of connecting client
* @param client_name Name of connecting client (from RDP client core info)
* @param flags Flags which affect the returned FDs
* @return != 0 for error
*
@@ -429,6 +431,8 @@ scp_get_create_session_response(struct trans *trans,
int
scp_send_connect_session_request(struct trans *trans,
const struct guid *guid,
const char *client_ip,
const char *client_name,
unsigned int flags);
@@ -437,12 +441,16 @@ scp_send_connect_session_request(struct trans *trans,
*
* @param trans SCP transport
* @param[out] guid Session guid
* @param[out] client_ip IP address of connecting client
* @param[out] client_name Name of connecting client
* @param[out] flags Flags which affect the returned FDs
* @return != 0 for error
*/
int
scp_get_connect_session_request(struct trans *trans,
struct guid *guid,
const char **client_ip,
const char **client_name,
unsigned int *flags);
/**