mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUACAMOLE-339: Add remote host field to database and populate appropriately.
This commit is contained in:
		| @@ -27,6 +27,7 @@ | ||||
|     <resultMap id="ConnectionRecordResultMap" type="org.apache.guacamole.auth.jdbc.connection.ConnectionRecordModel"> | ||||
|         <result column="connection_id"        property="connectionIdentifier"     jdbcType="INTEGER"/> | ||||
|         <result column="connection_name"      property="connectionName"           jdbcType="VARCHAR"/> | ||||
|         <result column="remote_host"          property="remoteHost"               jdbcType="VARCHAR"/> | ||||
|         <result column="sharing_profile_id"   property="sharingProfileIdentifier" jdbcType="INTEGER"/> | ||||
|         <result column="sharing_profile_name" property="sharingProfileName"       jdbcType="VARCHAR"/> | ||||
|         <result column="user_id"              property="userID"                   jdbcType="INTEGER"/> | ||||
| @@ -41,6 +42,7 @@ | ||||
|         SELECT | ||||
|             guacamole_connection_history.connection_id, | ||||
|             guacamole_connection_history.connection_name, | ||||
|             guacamole_connection_history.remote_host, | ||||
|             guacamole_connection_history.sharing_profile_id, | ||||
|             guacamole_connection_history.sharing_profile_name, | ||||
|             guacamole_connection_history.user_id, | ||||
| @@ -62,6 +64,7 @@ | ||||
|         INSERT INTO guacamole_connection_history ( | ||||
|             connection_id, | ||||
|             connection_name, | ||||
|             remote_host, | ||||
|             sharing_profile_id, | ||||
|             sharing_profile_name, | ||||
|             user_id, | ||||
| @@ -72,6 +75,7 @@ | ||||
|         VALUES ( | ||||
|             #{record.connectionIdentifier,jdbcType=VARCHAR}, | ||||
|             #{record.connectionName,jdbcType=VARCHAR}, | ||||
|             #{record.remoteHost,jdbcType=VARCHAR}, | ||||
|             #{record.sharingProfileIdentifier,jdbcType=VARCHAR}, | ||||
|             #{record.sharingProfileName,jdbcType=VARCHAR}, | ||||
|             (SELECT user_id FROM guacamole_user | ||||
| @@ -89,6 +93,7 @@ | ||||
|         SELECT | ||||
|             guacamole_connection_history.connection_id, | ||||
|             guacamole_connection_history.connection_name, | ||||
|             guacamole_connection_history.remote_host, | ||||
|             guacamole_connection_history.sharing_profile_id, | ||||
|             guacamole_connection_history.sharing_profile_name, | ||||
|             guacamole_connection_history.user_id, | ||||
| @@ -146,6 +151,7 @@ | ||||
|         SELECT | ||||
|             guacamole_connection_history.connection_id, | ||||
|             guacamole_connection_history.connection_name, | ||||
|             guacamole_connection_history.remote_host, | ||||
|             guacamole_connection_history.sharing_profile_id, | ||||
|             guacamole_connection_history.sharing_profile_name, | ||||
|             guacamole_connection_history.user_id, | ||||
| @@ -209,4 +215,4 @@ | ||||
|  | ||||
|     </select> | ||||
|  | ||||
| </mapper> | ||||
| </mapper> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user