Commit Graph

3185 Commits (d958d1f0186968200da32bafc3d9be4a4aa7212d)
 

Author SHA1 Message Date
Jay Sorg bf0d56c314 chansrv: sound, add aac 8 years ago
Jay Sorg 8ac35d7ed1 chansrv: sound, handle skips in audio acks 8 years ago
matt335672 4023aa7f1c xfuse_create_share() called before xfuse_init()
* Initialise inode table in `xfuse_create_share()` if necessary
* Add guard to `xfuse_init_xrdp_fs()` to prevent double initialisation of the inode table
8 years ago
Koichiro IWAO 4d14f344fd fix indent, no logic change 8 years ago
Koichiro IWAO b34fc6da55 don't use hard coded constant values 8 years ago
Koichiro IWAO df32f74519 use g_free() 8 years ago
Koichiro IWAO 04187945a8 move base64 functions to base64.c 8 years ago
Koichiro IWAO c40baf03e6 docs: document base64 prefill credentials 8 years ago
Koichiro IWAO a89cb93bc7 decode base64 login window parameter
such as prefill username and password:
    username=ask{base64}YmFzZTY0
    username={base64}YmFzZTY0
    password=ask{base64}YmFzZTs2NCFwYXNzd29yZCM=
    password={base64}YmFzZTs2NCFwYXNzd29yZCM=

';', '#', '!' means comment in .ini files. If prefill username or
password contains such symbols, these can be provided base64 encoded.
8 years ago
Koichiro IWAO eae5cdf1fd pass through except for the first '='
if "foo=ba=r" is found in ini files, it should be parsed like this.
      key : foo
    value : ba=r
8 years ago
Koichiro IWAO d57e02626d add base64_decode function 8 years ago
Koichiro IWAO 05ef6d104e sesman: search pam files also in ${sysconfdir}/pam.d
as some operating system such as FreeBSD searches not only `/etc/pam.d`
but also `/usr/local/etc/pam.d` [1].

[1] https://www.freebsd.org/cgi/man.cgi?query=pam.d&sektion=5
8 years ago
Koichiro IWAO e990dd4263 chansrv: remove trailing space 8 years ago
Koichiro IWAO ca24572fd5 chansrv: use switch-case to support more codecs 8 years ago
Koichiro IWAO dbaf23e93b chansrv: constify wFormatTag 8 years ago
Koichiro IWAO 9f8a902476 Add a pam file for FreeBSD
as existing xrdp-sesman.unix doesn't suit FreeBSD.
8 years ago
Ben Cohen 8b4d057af2 Allow UDS connection from non-root users
If you run xrdp with a Unix Domain Socket (UDS) for the port specified in
/etc/xrdp/xrdp.ini then only root can connect to it.

Test case:

1. Edit /etc/xrdp/xrdp.ini to set "port=/var/run/xrdp-local.socket".

2. Restart xrdp.

3. Run the following, as a non-root user.

  socat TCP-LISTEN:12345 UNIX-CONNECT:/var/run/xrdp-local.socket &
  rdesktop localhost:12345

Expected behaviour: rdesktop starts up and displays the logon dialog.
Observed behaviour: rdesktop exits with "ERROR: Connection closed" and
socat exits with "Permission denied".  (But it suceeds if root runs
socat.)

UDS files are created by trans_listen_address() and given permissions
0660, so only root can connect to it.  In this case, for the RDP client
connection, it it fine for any user to connect so it should be given
permissions 0666.

Note that this is only relevant when the port in /etc/xrdp/xrdp.ini has
been set to create a UDS instead of a TCP socket.  When a TCP port is
created any user (including remote users, unless the loopback interface
is used) can connect so this is not less secure.
8 years ago
Ian Geiser 324a334315 append a / to ensure the full path is created even when the config variable lacks a trailing / 8 years ago
Koichiro IWAO aaa40edefb NEWS: pulralize glitches 8 years ago
Koichiro IWAO aa0721a90e common: fix more glitches in IPv4 initialization 8 years ago
Ian Geiser 4b87548b71 Use g_create_path instead of g_create_dir
Rename g_mk_temp_dir to g_mk_socket_path
8 years ago
Koichiro IWAO 59a7e8aedf fix typo (copy & paste mistake) 8 years ago
Koichiro IWAO 502998b8fe Update release date 8 years ago
Koichiro IWAO 7ee187f35b Update NEWS 8 years ago
Koichiro IWAO 858e6149f0 fix typo 8 years ago
Koichiro IWAO 6f8eacd72b sesman: make sure socket directory present
before try to create a domain socket.
Originally proposed by Ian Geiser (geiseri).
8 years ago
Koichiro IWAO 8d5010a202 common: use log_message 8 years ago
Jay Sorg b6bd8acef1 sesman: move auth_start_session, auth_stop_session, and auth_end to child process 8 years ago
Jay Sorg 9d36983ae7 fix for protocol error when 32 bit and non rfx 8 years ago
Koichiro IWAO 8c74fcb80c common: fix a glitch with IPv4 struct initialization
Pointed out by: andrecbarros
Closes: #803
8 years ago
Koichiro IWAO 73a37a5441 Prepare release v0.9.3 8 years ago
Koichiro IWAO e0b73bf700 update submodules to their release tag head commit 8 years ago
Koichiro IWAO b83b5510f4 Fix Xvnc backend disconnects when some data copied to clipboard
Should fix #755.
8 years ago
Ben Cohen c7d08bd9e7 xrdp-sesadmin: fix error when there are no sessions
Test case:  On a system running xrdp with no sessions running run:

  xrdp-sesadmin -u=<user> -p=<password> -c=list

Expected result: "No sessions." (ignoring debug output)
Observed result: "Error getting session list."

In the SCP_SERVER_STATE_MNG_LISTREQ case in scp_v1_mng_process() if
there are no sessions it ends the scp session, which causes an error in
the client.  In commit 0017081d the client was changed to report errors,
giving the result above.

Fix by calling scp_v1s_mng_list_sessions() from scp_v1_mng_process()
even when there are no sessions, and if so sending a packet with a count
of zero so that the client gets what it expects.
8 years ago
Koichiro IWAO aa4b90d250 Change log level DEBUG -> WARNING
since unavailability of ssl protocols defined in config file
may weaken security and it is important for users.
8 years ago
Koichiro IWAO 455c341efc Reword log messages in ssl_get_protocols_from_string() 8 years ago
Koichiro IWAO 1b11c1888f docs: document change of xrdp-chansrv log path 8 years ago
Koichiro IWAO 9065964bd9 chansrv: include display number in chansrv log filename
since xrdp-chansrv may be run multiple instances per user. For example,
Xvnc backend creates one session per screen geometry.
8 years ago
Koichiro IWAO 3a27631826 travis: enable build test on v0.9 branch
it is the latest stable branch.
8 years ago
Jay Sorg 8d63c32899 move openssl calls to common/libssl.c, check for defines 8 years ago
Koichiro IWAO 5def0596e0 int function should return 8 years ago
Koichiro IWAO 5a7208a15b sesman: exit with failure status if listen failed 8 years ago
Koichiro IWAO 1d89000d90 xrdp: exit main process with failure status if listen failed (daemon mode) 8 years ago
Koichiro IWAO 7aad2c83c6 xrdp: exit with failure status if listen failed (foreground mode) 8 years ago
Koichiro IWAO 252cb20365 xrdp: xrdp_listen_main_loop pass through trans_listen_address return value 8 years ago
Koichiro IWAO 6a860d4b02 sesman: install empty reconnectwm.sh as a template
as it was undocumented and few people know reconnectwm.sh is executed on
client reconnect. The behaviour of startwm.sh / reconnectwm.sh  should
be documented. This is a first step of documenting them.
8 years ago
Koichiro IWAO 606984baad add Spanish keylayout 8 years ago
Koichiro IWAO 088bd2d811 common: implement g_file_readable for WIN32 8 years ago
Koichiro IWAO a1b0344db5 Use the words "cannot read" rather than "cannot open"
as the code actually tests readability.
8 years ago
Koichiro IWAO 4f7969b562 Check certificate/privkey readability not existence
to fail RDP security negotiation if certificate/privkey is not readable
8 years ago