[node-rdpjs] INFO: MCS DISCONNECT_PROVIDER_ULTIMATUM
I'm facing this error when i try to connect to server using remote desktop...
CLIENT DATA RECEIVED:{"label":"infos","ip":"server2008r2tes","port":3389,"screen":{"width":1093,"height":900},"domain":"","username":"","password":"","locale":"it-IT"} C:\nodeworkspace\pla…\server\mstsc.js:91 activating rdp connection... C:\nodeworkspace\pla…\lib\core\log.js:30 [node-rdpjs] INFO: screen 1093x900 C:\nodeworkspace\pla…\lib\core\log.js:30 [node-rdpjs] INFO: english keyboard layout C:\nodeworkspace\pla…\lib\core\log.js:30 [node-rdpjs] INFO: connect to server2008r2tes:3389 C:\nodeworkspace\pla…\server\mstsc.js:53 Setting remote description [object Object] C:\nodeworkspace\pla…\server\mstsc.js:53 Data channel connection success C:\nodeworkspace\pla…\lib\core\log.js:30 [node-rdpjs] INFO: SSL standard security selected C:\nodeworkspace\pla…\lib\core\log.js:30 [node-rdpjs] WARN: Error: unable to verify the first certificate C:\nodeworkspace\pla…server\mstsc.js:108 RDP-CONNECT EVENT C:\nodeworkspace\pla…server\mstsc.js:115 RDP-RENDER BITMAP EVENT C:\nodeworkspace\pla…\lib\core\log.js:30 [node-rdpjs] INFO: MCS DISCONNECT_PROVIDER_ULTIMATUM C:\nodeworkspace\pla…\lib\core\log.js:30 [node-rdpjs] ERROR: ECONNRESET(read ECONNRESET)
Could be this errore related to "unable to verify the first cerfificate" error?
Thanks in advance
I first found a fork this fixed:
[node-rdpjs] INFO: screen 1600x821
[node-rdpjs] INFO: english keyboard layout
[node-rdpjs] INFO: connect to 10.10.10.10:3389
[node-rdpjs] INFO: SSL standard security selected
[node-rdpjs] ERROR: undefined(crypto.createCredentials is not a function)
TypeError: crypto.createCredentials is not a function
at BufferLayer.startTLS (/app/node_modules/node-rdpjs/lib/core/layer.js:127:39)
at Client.recvConnectionConfirm (/app/node_modules/node-rdpjs/lib/protocol/x224.js:245:28)
at TPKT.<anonymous> (/app/node_modules/node-rdpjs/lib/protocol/x224.js:202:8)
at Object.onceWrapper (events.js:483:26)
at TPKT.emit (events.js:376:20)
at TPKT.recvData (/app/node_modules/node-rdpjs/lib/protocol/tpkt.js:110:7)
at BufferLayer.<anonymous> (/app/node_modules/node-rdpjs/lib/protocol/tpkt.js:101:8)
at Object.onceWrapper (events.js:483:26)
at BufferLayer.emit (events.js:376:20)
at BufferLayer.recv (/app/node_modules/node-rdpjs/lib/core/layer.js:92:8)
As I understand it, the project is no longer supported? I got the same problem. There is a strong suspicion that "Parsing [MS-RDPBCGR] TS_INFO_PACKET" does not give full information about the connected device, which leads to an error.
To connect to windows 7 and server 2008, I lowered the degree of encryption on the node node --tls-min-v1.0 server.js
But for newer ways, the connection does not work or gives such an error MCS DISCONNECT_PROVIDER_ULTIMATUM .
{"name":"node-rdpjs","hostname":"5a0280146539","pid":1,"level":40,"msg":"undefined","time":"2021-05-16T05:03:39.718Z","v":0}
{"name":"node-rdpjs","hostname":"5a0280146539","pid":1,"level":30,"msg":"MCS DISCONNECT_PROVIDER_ULTIMATUM","time":"2021-05-16T05:03:41.318Z","v":0}
Using the example of the same xrdp because you can read the logs there:
[20210516-05:03:37] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210516-05:03:40] [INFO ] Connected client computer name: node-rdpjs
[20210516-05:03:40] [INFO ] xrdp_load_keyboard_layout: keyboard_type [4] keyboard_subtype [0]
[20210516-05:03:40] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20210516-05:03:41] [INFO ] TLS connection established from 10.0.0.2 port 52734: TLSv1.1 with cipher ECDHE-RSA-AES256-SHA
[20210516-05:03:41] [ERROR] received wrong flags, likely decrypt not working
[20210516-05:03:41] [ERROR] xrdp_sec_recv: xrdp_sec_process_logon_info failed
[20210516-05:03:41] [ERROR] xrdp_rdp_recv: xrdp_sec_recv failed
[20210516-05:03:41] [ERROR] libxrdp_process_data: xrdp_rdp_recv failed
[20210516-05:03:41] [ERROR] xrdp_process_data_in: xrdp_process_loop failed
The script needs updating !!!!