PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

VMware.vSphere.SsoAdmin: Timeout Error When Looking up AD Configured SSO user

Open faherne opened this issue 4 years ago • 4 comments
trafficstars

Command: Get-SsoPersonUser -Name "AD-Service-Account-01" -Domain "MyCompany.com"

Error Message: Get-SsoPersonUser: One or more errors occurred. (The request channel timed out attempting to send after 00:00:30. Increase the timeout value passed to the call to request or increase the SendTimeout value on the binding. The time allotted to this operation may have been a portion of a longer timeout.)

faherne avatar Aug 24 '21 21:08 faherne

We have to make the timeout configurable or to read it from PowerCLI settings.

dmilov avatar Aug 25 '21 06:08 dmilov

Is there anything I can do to help, or is this something that needs to be configured in the SDK?

faherne avatar Sep 03 '21 21:09 faherne

Is there anything I can do to help, or is this something that needs to be configured in the SDK?

The timeout is hardcoded at the moment and cannot be changed on the fly from PowerShell. https://github.com/vmware/PowerCLI-Example-Scripts/blob/master/Modules/VMware.vSphere.SsoAdmin/src/VMware.vSphere.SsoAdmin.Client/VMware.vSphere.SsoAdminClient/SsoAdminClient.cs#L28

As a quick fix, I can increase the hardcoded value to 5 minutes, and later to make it either configurable or read it from PowerCLI settings

dmilov avatar Sep 07 '21 08:09 dmilov

Published version 1.3.5 on PSGallery with a default timeout of 5 minutes. I believe that solves the issue for now.

dmilov avatar Sep 07 '21 08:09 dmilov