Able to make PSM Connections to same target windows server using local account but it fails with domain account.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Able to make PSM Connections to same target windows server using local account but it fails with domain account.

L4 Transporter

Hi Team,

I am able to login to the server using mstsc and with credentials of same domain account that I am trying to make a connection to target from cyberark.

strange part is I can make connection using a local account that I created for testing.

 

error:

PSMIC001I IPC Channel exception was thrown. PSMIC007E IPC Pipe Channel overlapped receive failed. Information: 1, 109 (Codes: -1, 109).

PSMPR050I Setting session IsAlive to False.

Audit Server thread terminating after pipe connection broke.

Audit server job post-execution phase started.

Duplicated session was deleted. Vault=[PSMServerVault], CredFile=[D:\Program Files (x86)\CyberArk\PSM\Vault\psmgw.cred], User=[PSMGw_SRV1234].

Duplicated session was deleted. SessionNum=[2], User=[PSMGw_SRV1234].

PSMSR009I Privileged Session Manager exception occurred. PSMSR278I [fbb6e453-ee6f-46ed-9e0f-xxxxxxxxxxx] Session component [InternalConnectionClient] has stopped. Ending session. (Codes: -1, -1)

 

 

1 accepted solution

Accepted Solutions

L4 Transporter

@Malhar Vora​, @Matt Jennison​, really appreciate your time to reply on the post.

The issue turned out to be parameters set on platform side where "Log On To" & "Remote Machine" were set incorrectly.

Issue is fixed for now.

View solution in original post

15 REPLIES 15

L7 Applicator

Hi @Amit Maharana​ 

 

Can you please check whether PSMConnect and PSMAdminConnect accounts are not locked and has required permission on PSM Component folder (within PSM server)?

 

Please use this PSM Checker tool which will help you to troubleshoot the issue

 

https://community.cyberark.com/s/article/PSMChecker-Tool-User-Guide

 

Hope it helps!

Hi @Malhar Vora​,

I had run PSM Checker tool, provided full permissions for PSMConnect and PSMAdminConnect users on Component folder, checked both accounts are active.

increased all possible connection timeouts.

Still no luck.

L7 Applicator

Hi @Amit Maharana​ 

 

Please refer to the solution from this KB https://community.cyberark.com/s/article/00003666

 

Hope it helps !

Hi @Malhar Vora​,

I probably have applied all possible settings that I could find in all articles including the one you pasted above, still no luck.

L4 Transporter

I reach upto a point where I see the pop-up that "You are being recorded".

Field_Content_versions_oct20__068Vy00000nUrFdIAK.png

L7 Applicator

Hi @Amit Maharana​ 

 

Please check if target device user is in "Remote Desktop Users" group.

 

Also please refer to the following community threads.

 

https://community.cyberark.com/s/question/0D52J00007VbfnRSAR/how-to-fix-this-error-psmrd001e-user-was-disconnected-from-remote-machine-reason-error-connecting-to-remote-computer-code-3

 

https://community.cyberark.com/s/question/0D5Ht00009w5uqpKAA/i-get-this-error-psmrd001e-user-was-disconnected-from-the-remote-machine-reason-error-connecting-to-the-remote-computer-code-3-the-account-has-rdp-rights-and-can-rdp-to-the-target-server-directly-from-the-psm-server

 

 

Hope it helps !

 

 

 

 

@Malhar Vora​, When I try to copy any file or text from the VDI(where I launched Privilege Cloud URL), to the PSM it does not allow me.

Could that be the issue ?

L7 Applicator

Hi @Amit Maharana​ 

 

I dont think thats the issue. Unable to copy the file to PSM could because of hardening or network restrictions. Have you referred to KBs I shared earlier?

Hi @Malhar Vora​,

Target user is added in Local Policies > User Rights Assignment > "Allow log on through Remote Desktop Services" GPO & in Remote Desktop Users Group locally on server. I added the domain user to local administrator group also.

139, 135, 445, 3389 ports are reachable.

The strange part is I can make connections using a local account from same server but not a domain account which is having similar permission on server.

Is there a huge difference between how a PSM connection is made using a Server Local & a Domain account ?

------------------------------------------------------------------

Error I received today:

 PSMRD007I Establishing connection to remote machine

 m_Jobs.top(); - 0x04249400, size=0

 got new job

 before runjob

 in runjob

 before pre

 PSMRD058I [PSM RDP Audit Transfer Job] entered [PreExecute]

 PSMRD170I Deploying the Microsoft C Runtime Libraries.

 PSMOS021I Attempting to authenticate to remote windows with credentials of type: [0]

 PSMOS022I Attempting to authenticate to remote windows with user: [SRV1234.customerdomain.local\pamadm1]

 PSMOS023I Authentication to remote windows succeeded

 PSMOS117I Checking if path [\\customerdomain.local\admin$\SysWOW64] exists on target machine

 PSMRD173I OS architecture of target's machine OS architecture is 32-bit.

 PSMOS021I Attempting to authenticate to remote windows with credentials of type: [0]

 PSMOS024I Attempting to copy file [C:\Windows\SysWOW64\msvcp140.dll] to [\\customerdomain.local\admin$\System32\msvcp140.dll]

 PSMOS001E OS Objects exception occurred. PSMOS003E Failed to copy [C:\Windows\SysWOW64\msvcp140.dll] to remote machine resource [\\customerdomain.local\admin$\System32\msvcp140.dll] (System error [5]: Access is denied.) (Codes: -1, 5)

 PSMRD002E PSM RDP exception occurred. PSMRD133E Failed to copy audit agent to the target machine. Reason: PSMOS003E Failed to copy [C:\Windows\SysWOW64\msvcp140.dll] to remote machine resource [\\customerdomain.local\admin$\System32\msvcp140.dll] (System error [5]: Access is denied.) (Codes: -1, 0)

 PSMRD123E An error occurred while trying to deploy audit agent. Reason: PSMRD133E Failed to copy audit agent to the target machine. Reason: PSMOS003E Failed to copy [C:\Windows\SysWOW64\msvcp140.dll] to remote machine resource [\\customerdomain.local\admin$\System32\msvcp140.dll] (System error [5]: Access is denied.)

 PSMPR036I Audit session client is sending audit data (Audit data source: [WindowsTitle], Audit data: [FAILED TO INITIATE WINDOWS SESSION AUDIT])

 PSMPR039I Sending data

 PSMPR040I Session index has been increased (new index: 2)

 PSMPR030I Protocol message prefix has been serialized. Serialized prefix length: 12.

 PSMPR056I Protocol message data has been serialized. Serialized data length: 64.

 PSMPR041I Encrypting the message before sending it. Total number of bytes to be encrypted: 77, Number of data bytes (without the message prefix): 64.

 PSMPR042I Message is being sent over the pipe channel (Pipe timeout: 500, Packet identifier: StartAudit)

 PSMPR048I Waiting for the following expected packets: ACK

 PSMPR044I Waiting for a protocol packet (Current index: 2)

 PSMPR032I Protocol message factory is creating CPSMProtocolMessageBase object

 PSMPR059I Protocol packet index (2) is accepted. Current index: (2)

 PSMPR049I Packet has been received (Packet identifier: ACK)

 PSMPR046I Sending remaining data chunk (Cycle: 1, Data chunk: [FAILED TO INITIATE WINDOWS SESSION AUDIT], Chunk length: 40, Full data length: 40)

 PSMPR040I Session index has been increased (new index: 3)

 PSMPR030I Protocol message prefix has been serialized. Serialized prefix length: 11.

 PSMPR056I Protocol message data has been serialized. Serialized data length: 40.

 PSMPR041I Encrypting the message before sending it. Total number of bytes to be encrypted: 52, Number of data bytes (without the message prefix): 40.

 PSMPR042I Message is being sent over the pipe channel (Pipe timeout: 500, Packet identifier: DataAudit)

 PSMPR055I On cycle 1, 40 data bytes (without the message prefix) were sent over the pipe

 PSMPR048I Waiting for the following expected packets: ACK

 PSMPR044I Waiting for a protocol packet (Current index: 3)

 PSMPR032I Protocol message factory is creating CPSMProtocolMessageBase object

 PSMPR059I Protocol packet index (3) is accepted. Current index: (3)

 PSMPR049I Packet has been received (Packet identifier: ACK)

 PSMPR040I Session index has been increased (new index: 4)

 PSMPR030I Protocol message prefix has been serialized. Serialized prefix length: 10.

 PSMPR056I Protocol message data has been serialized. Serialized data length: 0.

 PSMPR041I Encrypting the message before sending it. Total number of bytes to be encrypted: 10, Number of data bytes (without the message prefix): 0.

 PSMPR042I Message is being sent over the pipe channel (Pipe timeout: 500, Packet identifier: EndAudit)

 PSMPR048I Waiting for the following expected packets: ACK

 PSMPR044I Waiting for a protocol packet (Current index: 4)

 PSMPR032I Protocol message factory is creating CPSMProtocolMessageBase object

 PSMPR059I Protocol packet index (4) is accepted. Current index: (4)

 PSMPR049I Packet has been received (Packet identifier: ACK)

 PSMPR045I Waiting for Vault acknowledge packet (Session index: 4)

 PSMPR080I Wait for vault acks session timeouts : VaultTO[125000], SessionTO[500]

 PSMPR048I Waiting for the following expected packets: VACK

 PSMPR044I Waiting for a protocol packet (Current index: 4)

 PSMPR032I Protocol message factory is creating CPSMProtocolMessageBase object

 PSMPR059I Protocol packet index (4) is accepted. Current index: (4)

 PSMPR049I Packet has been received (Packet identifier: VACK)

 before exec

 PSMRD089E Job is not valid, skipping [Execute] for job [PSMAuditTransferJob]

 before post

 PSMRD089E Job is not valid, skipping [PostExecute] for job [PSMAuditTransferJob]

 After post

 after runjob

 before getqueue

 PSMRD134I RDP Client has started handling an audit job message. Extra details: 1

 PSMRD141I RDP Client is handling the audit job message: Audit agent failed to be executed

 PSMRD131I PSM RDP Client has not disconnected the RDP session even though the audit agent failed to be executed

 PSMRD015I Connection details: Address [customerdomain.local], UserName [pamadm1], Domain [SRV1234.customerdomain.local], Port [3389], AllowConnectToConsole [no], AllowMappingLocalDrives [yes], RedirectSmartCards [no]

 PSMRD137I Creating and displaying connecting dialog

 PSMRD138I Connecting dialog was created

 PSMRD115I Session has been disconnected. (Diagnostic information: 3)

 Thread Pool is stopping ...

 after getqueue

 before getting new job

 got new job

 breaking...

 Thread 1cf8 860 is exiting

 Thread Pool sent stop signal successfully.

 PSMRD139I PSM RDP Client is destroying the connecting dialog

 PSMRD002E PSM RDP exception occurred. PSMRD001E User was disconnected from remote machine. Reason: [Error connecting to remote computer:] (Code: 3) (Codes: -1, -1)

 PSMRD144I Showing timed message box with the following message: PSMRD001E User was disconnected from remote machine. Reason: [Error connecting to remote computer:] (Code: 3)

 PSMRD165I Retrying TS Drives Mapping and Redirection (5 tries left)

 PSMRD032I Mapping terminal services drives

 

L4 Transporter

Hi @Malhar Vora​,

using the Local Account to make connection had always worked.

But not with a Domain account that has almost same permission on the target server.

What could possibly the issue ?

 

L4 Transporter

Hi @Malhar Vora​,

using the Local Account to make connection had always worked.

But not with a Domain account that has almost same permission on the target server.

What could possibly the issue ?

 

If you have an admin user that is working, then give the user that is not working the exact same permissions on the target and see if that works. Then remove permissions 1 by 1 and see which breaks the connection.

 

-Matt

L4 Transporter

@Malhar Vora​, @Matt Jennison​, really appreciate your time to reply on the post.

The issue turned out to be parameters set on platform side where "Log On To" & "Remote Machine" were set incorrectly.

Issue is fixed for now.

Glad to hear you got it fixed up!

 

-Matt

  • 1 accepted solution
  • 337 Views
  • 15 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!