Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Error #111

Open
mattcoker20 opened this issue Apr 18, 2024 · 3 comments
Open

Authentication Error #111

mattcoker20 opened this issue Apr 18, 2024 · 3 comments

Comments

@mattcoker20
Copy link

Current Behavior

PS C:\Windows\system32> Connect-Rsc -ServiceAccountFile C:\Users\user\Documents\WindowsPowerShell\rubrik-powershell-sdk\rsc_service_account_default.xml
Connect-Rsc : One or more errors occurred.
At line:1 char:1
+ Connect-Rsc -ServiceAccountFile C:\Users\user\Documents\Windo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : AuthenticationError: (:) [Connect-Rsc], AggregateException
    + FullyQualifiedErrorId : UnableToAuthenticateToRubrikSecurityCloud,RubrikSecurityCloud.PowerShell.Cmdlets.Connect_Rsc

Expected Behavior

Connect to RSC but does not work. Tried creating a new service account but does not work

Steps to Reproduce

No response

Context

No response

Failure Logs

No response

@guirava guirava transferred this issue from rubrikinc/rubrik-sdk-for-powershell Jun 14, 2024
@SahFari
Copy link

SahFari commented Jun 14, 2024

I have RubrikSecurityCloud version 1.4 installed at this works.
$ServiceAccountFile = 'C:\Users\xxxxx\Documents\WindowsPowerShell\rubrik-powershell-sdk\rsc_service_account_default.xml'

Connect-Rsc -ServiceAccountFile $ServiceAccountFile

Maybe it works beacuse I had this done earlier?
Set-RscServiceAccountFile -InputFilePath C:\Temp\MyServiceAccount.json

@keenerb
Copy link

keenerb commented Aug 26, 2024

I'm having the same problem, or a very similar one.

I created an encrypted account file, and documentation reports that "connect-rsc" should simply work.

PS U:> connect-rsc connect-rsc : One or more errors occurred.
At line:1 char:1

  • connect-rsc
  •   + CategoryInfo          : AuthenticationError: (:) [Connect-Rsc], AggregateException
      + FullyQualifiedErrorId : UnableToAuthenticateToRubrikSecurityCloud,RubrikSecurityCloud.PowerShell.Cmdlets.Connect
     _Rsc
    
    

I felt it may be related to the file having been created on a mapped drive letter, so I copied it locally and tried the security file command:

PS U:> connect-rsc -ServiceAccountFile C:\JSON\rsc_service_account_default.xml
connect-rsc : One or more errors occurred.
At line:1 char:1

  • connect-rsc -ServiceAccountFile C:\JSON\rsc_service_account_default.x ...
  •   + CategoryInfo          : AuthenticationError: (:) [Connect-Rsc], AggregateException
      + FullyQualifiedErrorId : UnableToAuthenticateToRubrikSecurityCloud,RubrikSecurityCloud.PowerShell.Cmdlets.Connect
     _Rsc
     
     Not sure what's going on.  
    

@SahFari
Copy link

SahFari commented Aug 27, 2024

Can you recreated the rsc_service_account_default.xml file?

If you run Set-RscServiceAccountFile -InputFilePath C:\ .... the rsc_service_account_default.xml gets recreated here: C:\Users\YourUsername\Documents\PowerShell\rubrik-powershell-sdk.

You need to either overwite the xml-file , or as did as a test, rename the old file.

Connect-Rsc -ServiceAccountFile $ServiceAccountFile or Connect-Rsc should work.

I ususally run Connect-Rsc -IfNeeded | Out-Null but I have tested Connect-Rsc -ServiceAccountFile $ServiceAccountFile as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants