Hi,
I have this issue with xrdp 0.5.0-0.13.el6 and 0.6.1-3.el6 and tigervnc-server 1.1.0-5.el6_4.1, in Red Hat 6.5.
With LDAP account, I cannot connect to a xrdp server at the first login. At the second time, it works (only for 0.5.0, not for 0.6.1). There is no problem if I create the home dir before connecting the first time. This let me to believe there is a sleep issue between xrdp-sesman and Xvnc. The time xrdp-sesman creates ~/.vnc/sesman_$USER_passwd, and launch Xvnc, xrdp or xrdp-sesman says it cannot connect to Xvnc (127.0.0.1:591X).
Workaround:
a) Disable VNCAuth (in /etc/xrdp/sesman.ini, adds SecurityTypes to None see https://github.com/TigerVNC/tigervnc/issues/24)
b) Creates the home dir before connecting for xrdp 0.5.0 (for 0.6.1, restart xrdp too)
a) is not secure enough for us since there is a big security risk. b) does not work either because we do not know who wants to connect before creating the home dir. Trying to modify Xvnc or startwm.sh, to create the home dir, does not work because it is already too late when they are called.
What is expected:
xrdp or xrdp-sesman or libvnc.so must create the sesman_$USER_passwd, even when the home dir does not exist, then waits for it (or sleep).
Related bug tracking:
https://bugzilla.redhat.com/show_bug.cgi?id=557510
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654788