pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
291 stars 91 forks source link

Unable to establish PASSession #323

Closed hlj013 closed 3 years ago

hlj013 commented 3 years ago

Describe the issue When I run the PASSession command I get no result, but no error either and get error 500 when I try to run other commands that require the session. I confrimed that I can logon to the URL with the creds supplied.

To Reproduce Steps to reproduce the behavior:

  1. $t = New-PASSession -Credential $cred -BaseURI https://pvwa.domain -type LDAP

Expected behavior I expect $t to have the PAS Session information and be able to utilize it to run commands against our CyberArk Screenshots & Console Output DEBUG: [Body] { "password": "**", "username": "Username" } VERBOSE: POST https://pvwa.domain/PasswordVault/api/Auth/LDAP/Logon with -1-byte payload VERBOSE: received 182-byte response of content type application/json; charset=utf-8 VERBOSE: GET https://pvwa.domain/PasswordVault/WebServices/PIMServices.svc/Server with 0-byte payload

Console Output Code Block:

Your Environment

Additional context

pspete commented 3 years ago

Hi @hlj013 , that is expected behaviour, New-PASSession returns no output.

A 500 error indicates possibility of a configuration issue on the target api server.

This command will return the session data if it is needed: https://pspas.pspete.dev/commands/Get-PASSession

hlj013 commented 3 years ago

Thank you for your response. I had already tried the Get_PASSession command. Here is my result: get-PASSession VERBOSE: GET https://pvwa.domain/PasswordVault/WebServices/PIMServices.svc/User with 0-byte payload Invoke-WebRequest : The remote server returned an error: (500) Internal Server Error. At line:209 char:19

pspete commented 3 years ago

Check closed issues for previous reports of 500 errors to see the ways in which they have been resolved for others:

106

201

246

267

pspete commented 3 years ago

Any update? do you still need the issue open?

pspete commented 3 years ago

Closing, no updates.