xrdp.ini (5) Linux Manual Page
xrdp.ini – Configuration file for xrdp(8)
Description
This is the man page for xrdp.ini, xrdp(8) configuration file. It is composed by a number of sections, each one composed by a section name, enclosed by square brackets, followed by a list of <parameter>=<value> lines. xrdp.ini supports the following sections:
[Globals]– sets some global configuration settings forxrdp(8).[Logging]– logging subsystem parameters[Channels]– channel subsystem parameters- All options and values (except for file names and paths) are case insensitive, and are described in detail below.
Globals
The options to be specified in the
[Globals]section are the following:address=ip address- Specify xrdp listening address. If not specified, defaults to 0.0.0.0 (all interfaces).
autorun=session_name- Section name for automatic login. If set and the client supplies valid username and password, the user will be logged in automatically using the connection specified by session_name.
If session_name is empty, the
LOGIN DOMAINfrom the client with be used to select the section. If no domain name is supplied, the first suitable section will be used for automatic login. bitmap_cache=[true|false]- If set to
1,trueoryesthis option enables bitmap caching inxrdp(8). bitmap_compression=[true|false]- If set to
1,trueoryesthis option enables bitmap compression inxrdp(8). bulk_compression=[true|false]- If set to
1,trueoryesthis option enables compression of bulk data inxrdp(8). certificate=/path/to/certificatekey_file=/path/to/private_key- Set location of TLS certificate and private key. They must be written in PEM format. If not specified, defaults to
${XRDP_CFG_DIR}/cert.pem,${XRDP_CFG_DIR}/key.pem.This parameter is effective only if
security_layeris set totlsornegotiate. channel_code=[true|false]- If set to
0,falseornothis option disables all channelsxrdp(8). See sectionCHANNELSbelow for more fine grained options. crypt_level=[low|medium|high|fips]- Regulate encryption level of Standard RDP Security. This parameter is effective only if
security_layeris set tordpornegotiate.Encryption in Standard RDP Security is controlled by two settings: Encryption Level and Encryption Method. The only supported Encryption Method are
40BIT_ENCRYPTIONand128BIT_ENCRYPTION.56BIT_ENCRYPTIONis not supported. This option controls the Encryption Level:-
low- All data sent from the client to the server is protected by encryption based on the maximum key strength supported by the client. This is the only level that the traffic sent by the server to client is not encrypted.
medium- All data sent between the client and the server is protected by encryption based on the maximum key strength supported by the client (client compatible).
high- All data sent between the client and the server is protected by encryption based on the server’s maximum key strength (sever compatible).
fips- All data sent between the client and server is protected using Federal Information Processing Standard 140-1 validated encryption methods. This level is required for Windows clients (mstsc.exe) if the client’s group policy enforces FIPS-compliance mode.
-
disableSSLv3=[true|false]- If set to
1,trueoryes,xrdpwill not accept SSLv3 connections. If not specified, defaults tofalse. This parameter is effective only ifsecurity_layeris set totlsornegotiate. fork=[true|false]- If set to
1,trueoryesfor each incoming connectionxrdp(8) forks a sub-process instead of using threads. hidelogwindow=[true|false]- If set to
1,trueoryes,xrdpwill not show a window for log messages. If not specified, defaults tofalse. max_bpp=[8|15|16|24|32]- Limit the color depth by specifying the maximum number of bits per pixel. If not specified or set to
0, unlimited. pamerrortxt=error_text- Specify text passed to PAM when authentication failed. The maximum length is
256. port=port- Specify TCP port to listen on for incoming connections. The default for RDP is
3389. require_credentials=[true|false]- If set to
1,trueoryes,xrdprequires clients to include username and password initial connection phase. In other words, xrdp doesn’t allow clients to show login screen if set to true. If not specified, defaults tofalse. security_layer=[tls|rdp|negotiate]- Regulate security methods. If not specified, defaults to
negotiate.-
tls- Enhanced RDP Security is used. All security operations (encryption, decryption, data integrity verification, and server authentication) are implemented by TLS.
rdp- Standard RDP Security, which is not safe from man-in-the-middle attack, is used. The encryption level of Standard RDP Security is controlled by
crypt_level. negotiate- Negotiate these security methods with clients.
-
tcp_keepalive=[true|false]- Regulate if the listening socket uses socket option
SO_KEEPALIVE. If set to1,trueoryesand the network connection disappears without closing messages, the connection will be closed. tcp_nodelay=[true|false]- Regulate if the listening socket uses socket option
TCP_NODELAY. If set to1,trueoryes, no buffering will be performed in the TCP stack. tcp_send_buffer_bytes=buffer_sizetcp_recv_buffer_bytes=buffer_size- Specify send/recv buffer sizes in bytes. The default value depends on operating system.
tls_ciphers=cipher_suite- Specifies TLS cipher suite. The format of this parameter is equivalent to which
openssl(1) ciphers subcommand accepts.(ex. $ openssl ciphers ‘HIGH:!ADH:!SHA1’)
This parameter is effective only if
security_layeris set totlsornegotiate. use_fastpath=[input|output|both|none]- If not specified, defaults to
none. black=000000grey=c0c0c0dark_grey=808080blue=0000ffdark_blue=00007fwhite=ffffffred=ff0000green=00ff00background=000000- These options override the colors used internally by
xrdp(8) to draw the login and log windows. Colors are defined using a hexadecimal (hex) notation for the combination of Red, Green, and Blue color values (RGB). The lowest value that can be given to one of the light sources is 0 (hex 00). The highest value is 255 (hex FF).
Logging
The following parameters can be used in the
[Logging]section:LogFile=${SESMAN_LOG_DIR}/sesman.log- This options contains the path to logfile. It can be either absolute or relative, and the default is ${SESMAN_LOG_DIR}/sesman.log
LogLevel=level- This option can have one of the following values:
COREor0– Log only core messages. these messages are _always_ logged, regardless the logging level selected.ERRORor1– Log only error messagesWARNING,WARNor2– Logs warnings and error messagesINFOor3– Logs errors, warnings and informational messagesDEBUGor4– Log everything. Ifsesmanis compiled in debug mode, this options will output many more low-level message, useful for developers EnableSyslog=[true|false]- If set to
1,trueoryesthis option enables logging to syslog. Otherwise syslog is disabled. SyslogLevel=level- This option sets the logging level for syslog. It can have the same values of
LogLevel. IfSyslogLevelis greater thanLogLevel, its value is lowered to that ofLogLevel.
Channels
The Remote Desktop Protocol supports several channels, which are used to transfer additional data like sound, clipboard data and others. Channel names not listed here will be blocked by
xrdp. Not all channels are supported in all cases, so setting a value to true is a prerequisite, but does not force its use.
Channels can also be enabled or disabled on a per connection basis by prefixing each setting withchannel.in the channel section.rdpdr=[true|false]- If set to
1,trueoryesusing the RDP channel for device redirection is allowed. rdpsnd=[true|false]- If set to
1,trueoryesusing the RDP channel for sound is allowed. drdynvc=[true|false]- If set to
1,trueoryesusing the RDP channel to initiate additional dynamic virtual channels is allowed. cliprdr=[true|false]- If set to
1,trueoryesusing the RDP channel for clipboard redirection is allowed. rail=[true|false]- If set to
1,trueoryesusing the RDP channel for remote applications integrated locally (RAIL) is allowed. xrdpvr=[true|false]- If set to
1,trueoryesusing the RDP channel for XRDP Video streaming is allowed.
Connections
A connection section is made of a section name, enclosed in square brackets, and the following entries:
name=<session name>- The name displayed in
xrdp(8) login window’s combo box. lib=../vnc/libvnc.so- Sets the library to be used with this connection.
username=<username>|ask- Specifies the username used for authenticating in the connection. If set to ask, user name should be provided in the login window.
password=<password>|ask- Specifies the password used for authenticating in the connection. If set to ask, password should be provided in the login window.
ip=127.0.0.1- Specifies the ip address of the host to connect to.
port=<number>|-1- Specifies the port number to connect to. If set to -1, the default port for the specified library is used.
xserverbpp=<number>- Specifies color depth of the backend X server. The default is the color depth of the client. Only Xvnc and X11rdp use that setting. Xorg runs at 24 bpp.
code=<number>|0- Specifies the session type. The default, 0, is Xvnc, 10 is X11rdp, and 20 is Xorg with xorgxrdp modules.
Examples
This is an example
xrdp.ini:[Globals] bitmap_cache=true bitmap_compression=true [vnc1] name=sesman lib=../vnc/libvnc.so username=ask password=ask ip=127.0.0.1 port=-1
Files
${XRDP_CFG_DIR}/xrdp.ini
See Also
xrdp(8),sesman(8),sesrun(8),sesman.ini(5) for more info onxrdpsee http://www.xrdp.org/
