How does Just in time (JIT)/Adhoc Access in CyberArk work ?

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

How does Just in time (JIT)/Adhoc Access in CyberArk work ?

L3 Networker

I wanted to understand how CPM handles this on the back end . Does CPM elevate the account access by adding it to the Admin group or does it provision a new temporary account. I could not find a clear explanation for the same in any of the documents.

1 accepted solution

Accepted Solutions

L5 Sessionator

Hi @Himmat Bindra​ , CPM adds the currently logged on AD user to the local Administrators group of the target machine. In the end, the AD account you use to access CyberArk is added onto the target machine and you can connect directly to it with your own username+password.

 

Description and configuration of the feature is described here: https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/adhoc_access_admin.htm...

View solution in original post

13 REPLIES 13

L5 Sessionator

Hi @Himmat Bindra​ , CPM adds the currently logged on AD user to the local Administrators group of the target machine. In the end, the AD account you use to access CyberArk is added onto the target machine and you can connect directly to it with your own username+password.

 

Description and configuration of the feature is described here: https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/adhoc_access_admin.htm...

L3 Networker

Thank you for the clear explanation!

 

@hbind would you able to configure the JIT and is it working. i find the step 3, 4 and 5 in the above link very confusing.

 

Would you mind spread some light with examples.

 

ssiegl (CyberArk) - Which Version(s) of CyberArk support this? Is it 11.x only or does 10.x support this JIT configuration?

It came out with PAS v10.6. You will need Vault+CPM+PVWA in 10.6+ to benefit from this feature.

Hi ssigel,

In the documentation it is mentionned:

"Define a Domain Admin account as the reconciliation account on the platform level"

Must the reconciliation account be a domain admin account or it can be a domain account with admin privileges on the target machine ?

I'm using domain account with saml and MFA, LDAP auth is disabled. Can I even be able to use JIT access or do I need to enable LDAP authentication and use ad account with its password ?

 

Thanks in advance.

 

 

Hi @Mustapha EL HACHIMI​, I think the documentation is not very clear but I would suggest to try your second option: domain account with administrative privileges on the target server.

 

Also, authentication on PVWA does not matter. If you are logged in as "MEH" on the PVWA, the CPM Scanner will add the domain account "MEH" in the local Administrators group of the target server you've requested the ad hoc access to. You will be fine with SAML.

Hi,

 

Thanks a lot for your time and answer.

I did configuration as mentionned in the documentation.

I'm experiencing this error in the cpmscanner log file.

 

"System.Runtime.InteropServices.COMException (0x80070005): Access is denied."

 

Full error is:

 

20/01/2020 11:37:14.179 | tid=9402 | user=CACPMScanner  | AdHocAddUserTaskHandler | ExecutePluginAction | InProcess | Exception - System.Runtime.InteropServices.COMException (0x80070005): Access is denied.

 

  at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)

  at System.DirectoryServices.DirectoryEntry.Bind()

  at System.DirectoryServices.DirectoryEntry.get_IsContainer()

  at System.DirectoryServices.DirectoryEntries.ChildEnumerator..ctor(DirectoryEntry container)

  at AdHocAccess.MachineGroupManagement.RunMachineGroupActionAsUser(String targetMachine, String targetMachineLocalAdminName, SecureString targetMachineLocalAdminPass, Boolean isDomainAccount, String domain, Action`1 action)

  at CyberArk.CPMScanner.EPVTasks.AdHoc.AdHocAddUserTaskHandler.ExecutePluginAction()

 

Thanks.

Mustapha.

L4 Transporter

Has anyone tried this solution for JIT admin access on workstations?

L4 Transporter

Hi,

JITA works when everything is in the same domain and when you are using ldap authentication with samaccountname or UPN. TCP 445 must be enabled from the CPM to the targert server or workstation and the CPM scanner mut be running and able to post API request to the pvwa webservice.

The reconcile account must be in the same domain as the target machine and the user requesting the access.

If you run tests in a simple domain it will work for you. But if you have a forest and the user is in a domain different from the one of the target or the reconcile account, you will be facing issues.

Or if you are using MFA with saml or radius you may also be facing some issues.

Kind regards.

L1 Bithead

If JIT plants the currently logged on PVWA user to a server, wouldn't that propagate password hashes of workstation accounts to servers? Is there an option to create a temporary account with a strong password that is purged after JIT expires?

What kind of issues do you mean in combination with SAML ?

Did you find the problem ?

  • 1 accepted solution
  • 2284 Views
  • 13 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!