4.20.4.2. AbstractRdpProxy methods

MethodDescription
parse_connection_name(self, conn_name) Method to make decisions based on the username.

Table 4.62. Method summary

Method parse_connection_name(self, conn_name)

This function is invoked right at the start of the session, just before connecting to the server. At this time all attributes are configured and the argument conn_name is set to the default username provided by the client. This method shall return one of the following:

  • None: Leave everything unchanged.

  • A string: Change the username to the one specified in the string.

  • A tuple: Change the username, the server name and the server port. The parameters of the tuple are optional from the right. Any parameter may be set to None or 0 to leave the original value unchanged.