Thierry CHARLES | 29 Oct 11:52 2014

question : what is the client host ?

Hi,

I haven't found any forum or something like this about xrdp so I'm asking you :

Is there any way to get the name of the client host in xrdp ?


On MS Windows TSE, there are two ways :
  • the environment variable "CLIENTNAME"
  • a registry key HKCU\Volatile Environment\CLIENTNAME (which is always up to date so if someone connects from one computer and then reconnects from another, a process will be aware of the client change whereas the environment variable is set once at process launch)

Is there something similar with xrdp ?

Thank you for your help

--
Thierry CHARLES
INFASS Systèmes
Tel : 02.47.38.20.50

------------------------------------------------------------------------------
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Ken Milmore | 26 Oct 21:48 2014
Picon

Problems with non-PAM password authentication.

Hello,

I am using xrdp without PAM, and have been looking at the recently 
modified shadow authentication code in sesman/verify_user.c.

I have noticed that sesman segfaults when attempting to authenticate a 
user account which has been locked by "passwd -l username".  In fact the 
segfault occurs whenever the contents of the shadow password field do 
not match any of the hash formats expected by GNU crypt().

The problem lies in verify_user.c, function auth_user_pass().  The 
return value of crypt() will be NULL if the account happens to be locked 
or if the enctrypted password is in an unexpected format. So I would 
suggest that the code at the end of auth_user_pass() should go something 
like this:

   epass = crypt(pass, encr);
   if (epass == 0)
   {
     /* possibly a locked account */
     return 0;
   }
   return (strcmp(encr, epass) == 0);
}

Another point: auth_user_pass() seems to get called from a thread spun 
off a listening socket, but calls getpwnam, getspnam and crypt which  re 
not re-entrant. Shoudln't there be a mutex or something similar 
protecting this whole function?  Apologies if I've missed some reason 
why it can't be re-entered.

Best wishes,

Ken Milmore.

------------------------------------------------------------------------------
jjc | 21 Oct 04:21 2014
Picon

question about logging the title of active window

Hi

  I want to record the title of the active window when the focused  application window have changed, can I do this just in xrdp module or Neutrinordp module? I hope to get some suggestions from you, thank you very much!

 

  Best wishes!

 

                                                                                                                       Jiang Junchao

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Ashish Srivastava | 15 Oct 14:00 2014
Picon

regarding urgent help about session

Hello,

My name is Ashish Srivastava , I am a Linux adminitrator..I have configured xrdp on Centos 6.5 server ..My question is

Can we setup xrdp as single user can use multiple sessions without affecting sessions with different node id..
Like this thing we can do in realvnc..
Is there any method to activate this configuration..

I have setup and saw that windows user can access same session with single user as well as linux users... and their seesion affection their sessions.

Please help

thanks

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Jay Sorg | 13 Oct 02:47 2014
Picon

Re: 答复: Interface rendering error for help

What file is that in?
We should be changing them in neutrinordp/xrdp-neutrinordp.c

I pushed in a change to set all the order flags for the orders I know
we support.
Can you pull from devel and let me know if it works for you.

Jay

On Tue, Oct 7, 2014 at 2:46 AM, jjc <jjc <at> mail.ustc.edu.cn> wrote:
> Hi,
>    Thank you for your advice very much.
>    In fact,I haven't changed the order caps on the NeutrinoRDP side. I am not sure how to set the order caps on
the NeutrinoRDP side to turn the polygon order off.
>    And the NeutrinoRDP/libfreerdp-core/settings.c file just show as follow ,but it doesn't work when I
just make a change as settings->order_support[NEG_POLYGON_SC_INDEX] = false, is there something else
I should do?
>    What's more,how does lfreerdp_polygon_sc fuction work to rendering the miss polygon part in my problem
if I turn off the polygon_sc_order?
>         settings->order_support[NEG_DSTBLT_INDEX] = true;
>                 settings->order_support[NEG_PATBLT_INDEX] = true;
>                 settings->order_support[NEG_SCRBLT_INDEX] = true;
>                 settings->order_support[NEG_OPAQUE_RECT_INDEX] = true;
>                 settings->order_support[NEG_DRAWNINEGRID_INDEX] = true;
>                 settings->order_support[NEG_MULTIDSTBLT_INDEX] = true;
>                 settings->order_support[NEG_MULTIPATBLT_INDEX] = true;
>                 settings->order_support[NEG_MULTISCRBLT_INDEX] = true;
>                 settings->order_support[NEG_MULTIOPAQUERECT_INDEX] = true;
>                 settings->order_support[NEG_MULTI_DRAWNINEGRID_INDEX] = true;
>                 settings->order_support[NEG_LINETO_INDEX] = true;
>                 settings->order_support[NEG_POLYLINE_INDEX] = true;
>                 settings->order_support[NEG_MEMBLT_INDEX] = true;
>                 settings->order_support[NEG_MEM3BLT_INDEX] = true;
>                 settings->order_support[NEG_SAVEBITMAP_INDEX] = true;
>                 settings->order_support[NEG_GLYPH_INDEX_INDEX] = true;
>                 settings->order_support[NEG_FAST_INDEX_INDEX] = true;
>                 settings->order_support[NEG_FAST_GLYPH_INDEX] = true;
>                 settings->order_support[NEG_POLYGON_SC_INDEX] = true;
>                 settings->order_support[NEG_POLYGON_CB_INDEX] = true;
>                 settings->order_support[NEG_ELLIPSE_SC_INDEX] = true;
>                 settings->order_support[NEG_ELLIPSE_CB_INDEX] = true;
>     I will be very Thankful for your more help.
>     Best wishes!
>
> -----邮件原件-----
> 发件人: Jay Sorg [mailto:jay.sorg <at> gmail.com]
> 发送时间: 2014年10月7日 5:52
> 收件人: jjc
> 抄送: xrdp-devel <at> lists.sourceforge.net
> 主题: Re: [Xrdp-devel] Interface rendering error for help
>
> Hi,
>
> You should be able to set the order caps on the NeutrinoRDP side to turn them off.
> Did you change them already?
> Another option is to complete the polygon order.  That would take a bit of understanding of xrdp.
>
> Jay
>
>
> On Mon, Oct 6, 2014 at 5:25 AM, jjc <jjc <at> mail.ustc.edu.cn> wrote:
>>
>>
>> Hi,
>> I downloaded the latest Xrdp and NeutrinoRDP source code of the master
>> branch and I have met some Interface rendering error ,the problem
>> description is included in the attachments. I am looking forward to
>> your help,thank you very much!
>>
>>                                                       Best wishes!
>>
>>
>> Jiang Junchao
>>
>>
>> 2014.10.6
>>
>>
>>
>>
>>
>>
>> ----------------------------------------------------------------------
>> -------- Slashdot TV.  Videos for Nerds.  Stuff that Matters.
>> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.
>> clktrk _______________________________________________
>> xrdp-devel mailing list
>> xrdp-devel <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/xrdp-devel
>>
>
>

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
xrdp-devel mailing list
xrdp-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
manish | 7 Oct 09:07 2014
Picon

[SPAM] Does XRDP supports dual display

Dear Sir / Madam,

 

We are solution provider in Virtualization, and providing solutions to our clients in open source, we need your support.

 

Please provide information if we want to use dual display (One on VGA port & other on HDMI) and have to work on two different application on two display monitors, is it possible to use with XUbuntu with XRDP.

 

 

Thanks & Regards,

 

Apurva Computers Technologies Pvt Ltd

202 , Manas Complex,Opp Star India Bazar,Jodhpur Cross Road,

Satellite, Ahmedabad – 380015

 

Manish Dave :- +91 9824208213

Embedded & Virtualization

 

Phone : 079 – 26923532, 02752-222353

E-Mail   :

Support :support-K25T6g8WCJxltBrGDoMgaA@public.gmane.org  Sales: sales-K25T6g8WCJxltBrGDoMgaA@public.gmane.org

Accounts: asfaq.kazi-K25T6g8WCJxltBrGDoMgaA@public.gmane.org   Website : www.smartstation.in

Support : 9374651589 , Sales : 9374651621 , RMA : 9376915049 , Despatch:079-26923532

 

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
jjc | 6 Oct 04:30 2014
Picon

Interface rendering error for help

 

 

Hi,
Firstly,I downloaded the latest Xrdp and NeutrinoRDP source code of the master branch from the following website:
1)https://github.com/neutrinolabs/NeutrinoRDP 
2)https://github.com/FreeRDP/xrdp
Then, installed them in a debian server successfully, but got incorrect interface rendering after the following steps:
1)Connect to the proxy server using mstsc in a window7 computer.
2)select NeutrinoRDP proxy module to connect to the remote server which runs Windows Server 2003
3)open software of Microsoft virtual Manager 2008 R2,then choose one option and a new window created,but there will Interface rendering error as
picture12 and  3.
we can find the second picture has mixed with the background and some part of it doesn't rendering at all.the normal window should show as
picture 3.

What’s more,I find a problem in the source file xrdp-neutrinordp.c which I think cause the error. I got the log information as picture 4 but we can

See the polygon_sc->nDeltaEntries =4. And I can’t understand the process of handling the polygon_sc(some codes show in picture5 and picture 6). Why doesn’t  it handle the important data polygon_sc -> codeDeltaList?

 

 I am looking forward to your help,thank you very much!

                                                                                                                                                             

 

Attachment (Pictures.docx): application/vnd.openxmlformats-officedocument.wordprocessingml.document, 423 KiB
------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
jjc | 5 Oct 12:00 2014
Picon

Interface rendering error for help

Hi,
Firstly,I downloaded the latest Xrdp and NeutrinoRDP source code of the master branch from the following website:
1)https://github.com/neutrinolabs/NeutrinoRDP 
2)https://github.com/FreeRDP/xrdp
Then, installed them in a debian server successfully, but got incorrect interface rendering after the following steps:
1)Connect to the proxy server using mstsc in a window7 computer.
2)select NeutrinoRDP proxy module to connect to the remote server which runs Windows Server 2003
3)open software of Microsoft virtual Manager 2008 R2,then choose one option and a new window created,but there will Interface rendering error as follow:



we can find the second picture has mixed with the background and some part of it doesn't rendering at all.
the normal window should show as follow:

What’s more,I find a problem in the source file xrdp-neutrinordp.c which I think cause the error. I got the log information as follow but we can

See the polygon_sc->nDeltaEntries =4. And I can’t understand the process of handling the polygon_sc. Why doesn’t  it handle the important data

polygon_sc -> codeDeltaList?  I am looking forward to your help,thank you very much!

In Neutrinordp:

struct _POLYGON_SC_ORDER

{

    sint32 xStart;

    sint32 yStart;

    uint32 bRop2;

    uint32 fillMode;

    uint32 brushColor;

    uint32 nDeltaEntries;

    uint32 cbData;

    uint8* codeDeltaList;

};

typedef struct _POLYGON_SC_ORDER POLYGON_SC_ORDER;

In xrdp_devel xrdp-neutrinordp.c file:

static void DEFAULT_CC lfreerdp_polygon_sc(rdpContext* context, POLYGON_SC_ORDER* polygon_sc)

{

    struct mod *mod;

    int i, npoints;

    XPoint points[4];

    int fgcolor;

    int server_bpp, client_bpp;

 

    mod = ((struct mod_context *)context)->modi;

    LLOGLN(10, ("lfreerdp_polygon_sc :%d(points) %d(color) %d(fillmode) "

           "%d(bRop) %d(cbData) %d(x) %d(y)",

           polygon_sc->nDeltaEntries, polygon_sc->brushColor,

           polygon_sc->fillMode, polygon_sc->bRop2,

           polygon_sc->cbData, polygon_sc->xStart,

           polygon_sc->yStart));

    if (polygon_sc->nDeltaEntries == 3)

    {

        server_bpp = mod->inst->settings->color_depth;

        client_bpp = mod->bpp;

 

        points[0].x = polygon_sc->xStart;

        points[0].y = polygon_sc->yStart;

 

        for (i = 0; i < polygon_sc->nDeltaEntries; i++)

        {

            points[i + 1].x = 0; // polygon_sc->points[i].x;

            points[i + 1].y = 0; // polygon_sc->points[i].y;

        }

        fgcolor = convert_color(server_bpp, client_bpp,

                                polygon_sc->brushColor, mod->colormap);

 

        mod->server_set_opcode(mod, polygon_sc->bRop2);

        mod->server_set_bgcolor(mod, 255);

        mod->server_set_fgcolor(mod, fgcolor);

        mod->server_set_pen(mod, 1, 1); // style, width

        // TODO replace with correct brush; this is a workaround

        // This workaround handles the text cursor in microsoft word.

        mod->server_draw_line(mod,polygon_sc->xStart,polygon_sc->yStart,polygon_sc->xStart,polygon_sc->yStart+points[2].y);

//        mod->server_fill_rect(mod, points[0].x, points[0].y,

//                         points[0].x-points[3].x, points[0].y-points[2].y);

//      mod->server_set_brush(mod,); // howto use this on our indata??

        mod->server_set_opcode(mod, 0xcc);

    }

    else

    {

        LLOGLN(0, ("Not handled number of points in lfreerdp_polygon_sc"));

    }

}

 

 

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Emmanuel Blindauer | 3 Oct 21:16 2014
Picon

State of the Xorg driver for rdp

Hi
I'm trying since several days the Xorg driver instead of X11rdp, but 
facing some small problems.
What is the state of the driver ?
For example, It seems that disconnect timeout doesn't work, neither does 
the cleaning of sockets in /tmp/.xrdp/ fail.

Do I have a bad setup or is there still a lots of things to do appart 
the driver itself ?

Sincerely

Emmanuel

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
Matt Vassard | 1 Oct 14:05 2014
Picon

xRDP architecture

I'm trying to understand the architecture and protocol for xRDP because the observed behaviour seems to indicate that it does not replicate the approach of RDP.

So the first question I have, is does xRDP depend on the screen buffer to determine what gets sent back to a Windows RDP client? I say this, because there is an obvious frame refresh occurring somewhere. At first I thought that perhaps it uses VNC in the backend somewhere and converts input information from the client, and this would then explain the refresh behaviour, but after doing some research I have come to the conclusion that VNC is not involved anywhere. We are running an Ubuntu 14.04 on Azure in the Netherlands. We are in South Africa. It takes up to 30 seconds for the screen refresh. One of our guys said that he couldn't understand it because he was RDPing onto a server on AWS in the States and response was great. When we realised he was RDPing onto a Windows box, we figured that because RDP only transmits control information rather than screen buffer data, it is obviously going to be faster. How then does a Windows RDP client manage to read a screen buffer stream from xRDP?

Thanks in advance.
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Joshua Higgins | 18 Sep 09:55 2014
Picon

PPA for ubuntu

Hi list

I created a PPA for ubuntu which is building NeutrinoRDP from git and xrdp to go along with it. It will replace/upgrade the distributor provided libfreerdp and xrdp packages on installation.

The PPA is here:

https://code.launchpad.net/~kxteam/+archive/ubuntu/daily

It seems to work fine for me, let me know if there are issues or missing compile time options that would be useful.

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Gmane