Preskoči na sadržaj

xrdprecord.ini

xrdprecord.ini holds the settings of the program that prepares each recorded session of the Edge Gateway (RDP client, VNC viewer, VMware or Proxmox console) and launches its recording. Besides the Kerberos keytab and diagnostic switches, it sets the load-balancing information sent to a Remote Desktop broker and how long the message shown at the opening of a session stays on screen.

Property Value
Component Edge Gateway
Path /etc/ipdiva/cleanroom/xrdprecord.ini
Owner and permissions root:root, 644
Package cleanroom-xrdp-recorder (a configuration file kept on upgrade)
Format INI file: sections in brackets, one key = value per line

Parameters

Two syntax rules apply to the whole file:

  • a section name is case-sensitive ([VMWare], not [VMware]): a misspelt section is ignored, and its keys keep their default; a key name is not;
  • a switch is on only for the exact value true, in lower case: True, yes or 1 count as false.

The [VMWare] and [Interface] sections, and the BrokerLoadBalancingPrefix key, are not in the delivered file: add them to use them.

[Kerberos]

Kerberos authentication of RDP sessions to the target servers, when Kerberos is not disabled for the application. The section must exist: without it, no session can start.

Key Default value If the key is absent Effect
keytab /etc/ipdiva/cleanroom/xrdp.keytab required when Kerberos service accounts are configured Path of the keytab that holds the keys of the Kerberos service accounts. When service accounts are configured, the recorder first obtains a ticket for one of them with this keytab, then uses it to protect the Kerberos authentication of the user. If no service account can obtain a ticket, the user is authenticated without this protection. Without this key, an RDP session that has service accounts does not start.
debug false true true: enables the Kerberos traces. Those of the internal RDP client are written in /var/lib/ipdiva/carerecord/log/freerdpout-<session>.txt; the output of the user's ticket request is written to the session output. Applies to every session, whatever the protocol.

[VNC]

Sessions to a VNC server.

Key Default value If the key is absent Effect
debug false false true: the VNC viewer writes detailed traces (all modules, maximum level) to its error output.

[VMWare]

Console of a virtual machine hosted on VMware, displayed in a browser in kiosk mode. The section is not in the delivered file: add it to use its keys, with this exact case.

Key Default value If the key is absent Effect
debug — false true: the browser that displays the console opens as an ordinary window instead of kiosk mode, and the console page no longer closes when the connection to the virtual machine ends or when the desktop is closed. For diagnosis only: the user gets the browser's interface.
ignorecerterrors — false true: the connection to the VMware host checks neither its certificate nor its name, and accepts any certificate, including expired, self-signed or issued to another server. false: the certificate is checked against the certification authority provided for the host and against the system authorities.

Ignoring a certificate error removes the verification

ignorecerterrors = true accepts any certificate presented by the VMware host, including one that is expired, self-signed or issued for another server. Use it to diagnose, not as a permanent setting: install the certification authority of your host instead.

[Proxmox]

Console of a virtual machine hosted on Proxmox, displayed with the VNC viewer through a local bridge to the Proxmox host.

Key Default value If the key is absent Effect
debug false false true: the VNC viewer that displays the console writes detailed traces (all modules, maximum level) to its error output.
ignorecerterrors false false true: the connection to the Proxmox host checks neither its certificate nor its name, and accepts any certificate, including expired, self-signed or issued to another server. false: the certificate is checked against the certification authority provided for the host, or else against the system authorities.

Ignoring a certificate error removes the verification

ignorecerterrors = true accepts any certificate presented by the Proxmox host, including one that is expired, self-signed or issued for another server. Use it to diagnose, not as a permanent setting: install the certification authority of your host instead.

[RDP]

Internal RDP client of the recorder. Its output is always written in /var/lib/ipdiva/carerecord/log/freerdpout-<session>.txt; the keys below control the traces added to it.

Key Default value If the key is absent Effect
debug false false true: the RDP client writes its traces at the level of loglevel, filtered by logfilters, and the file is written line by line, so that it can be read during the session. false: only the messages of the client's default level are written, and the file may only be complete at the end of the session.
loglevel — DEBUG Level of the traces: OFF, FATAL, ERROR, WARN, INFO, DEBUG or TRACE, in any case. Read only when debug is true. Delivered commented out.
logfilters — no filter Levels per module, as a comma-separated list of module:LEVEL, to limit the volume of the traces; for example com.freerdp.channels.cliprdr:DEBUG for the clipboard. Read only when debug is true. Delivered commented out, with this example.
BrokerLoadBalancingPrefix — /load-balance-info:tsv://MS Terminal Services Plugin.1. Argument of the RDP client to which the name of the collection is appended, when the application goes through a Remote Desktop connection broker. To change only if the broker expects another load-balancing information.

The RDP traces are voluminous, and they describe the session

The delivered file says it: turn them on for a diagnosis only. They grow fast on the disk that also holds the recordings, and their content tells what happened in the session. Turn them off once the diagnosis is done, and remove the files they produced.

[Interface]

Message displayed to the user at the opening of a recorded session, when the application has one. The section is not in the delivered file: add it to use its key.

Key Default value If the key is absent Effect
MessageTimeout_Sec — the message stays until the user closes it Number of seconds after which the message closes by itself. Empty or 0: the message stays until the user clicks OK. A value that is not an integer prevents the message from being displayed.

Applying a change

The file is read when a session starts: a change applies to the next sessions, without restarting anything. The sessions already open keep the settings they started with.

Upgrade

The file is kept on upgrade. If you modified it, the upgrade asks whether to keep your version or to install the new one: the version not chosen is kept next to it, as xrdprecord.ini.dpkg-old (your former version) or xrdprecord.ini.dpkg-dist (the new version).

Comparing is worth it here

The delivered file carries its own comments, including the list of the trace levels and an example of filter. A version of yours kept across upgrades keeps the comments of its time: compare it with xrdprecord.ini.dpkg-dist to see what the new version documents.