VMware Cloud Community
Wesv
Contributor
Contributor

connect-srmserver -RemoteCredential : Unexpected SOAP fault

Purpose and background:

I don’t seem to be able to create a connection to both the protected and recovery site at the same time. Alternating between both sites is possible.
The connection to both sites is needed in order to protect the virtual machine in SRM using a script

Code:
Connect-SrmServer -RemoteCredential $credential -Credential $credential

Error Message:
Connect-SrmServer        Cannot complete login due to an incorrect user name or password.   
At line:1 char:1
+ Connect-SrmServer
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Connect-SrmServer], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Srm.ConnectSrmServer


Connecting to each SRM server seperately works:
Connect-SrmServer -SrmServerAddress FQDN1 -Credential $credential
Connect-SrmServer -SrmServerAddress FQDN2 -Credential $credential

Snippets from the SRM Log:
2016-08-09T13:17:07.635+02:00 [44300 trivia 'SsoClient'] opId=5272245a-1ab2-bb75-664e-7c0038368913 END operation SecurityTokenServiceImpl::AcquireToken
2016-08-09T13:17:07.635+02:00 [44300 error 'SamlTokenFactory'] Failed to acquire SAML token:
--> std::exception 'class SsoClient::SsoException' "Unexpected SOAP fault: ns0:InvalidRequest; request failed.

Version:
VMware vSphere PowerCLI 6.3 Release 1
VMware vCenter 6.0 U2 (Appliance)
Site Recovery Manager 6.1

The 2 vCenter are using the Linked mode with External PSC servers.

We have 2 environments, the same issue occures on both environments.

Tags (1)
0 Kudos
1 Reply
ikiris
Enthusiast
Enthusiast

I know this an old post, but I found that there is a bug I in how SRM does authentication in the case where the servers are in ELM.  I found a workaround that involved editing a sql table.

please see my blog

Connect-srmserver and loginsites issues with SRM sites in same SSO domain

I have been getting back into SRM scripting, this time with SRM 6.1. In a previous post, I discussed some strategies around how to size a SSO domain.…

loginsites,connect-srmserver,solution user

http://blog.chrischua.net/2017/02/13/connect-srmserver-and-loginsites-issues-with-srm-sites-in-same-...

-Chris- http://www.twitter.com/ikiris http://blog.chrischua.net
0 Kudos