Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
vCenter Orchestrator does not provide authentication credentials through REST to vShield (2036210)
Symptoms
- vCenter Orchestrator (vCO) does not provide authentication credentials through REST to vShield.
- Running a REST operation on vShield returns:
Status Code 403HTTP Status 403 - Authorization Header not presentAccess to the specified resource (Authorization Header not present.) has been forbidden
Cause
WWW-Authenticate: Basic realm=" followed by the realm name.Due to the absence of this header, the REST plug-in determines that no authentication is required and the Authenticate header is not set.
Resolution
This article will be updated as information becomes available.
To work around this issue:
Set JavaScript access to Java classes:
Notes:
- These steps describe the process for the vCenter Orchestrator Appliance, but the process is similar for Windows-based systems.
- For more information on this part of the procedure, see Set JavaScript Access to Java Classes in the VMware vSphere 5.1 Documentation Center.
- Enable SSH access on the Appliance. For more information, see Enable or Disable SSH Administrator Login on the vCenter Orchestrator Appliance in the vCenter Orchestrator 5.1 Documentation.
Note: The default username and password isroot/vmware. - Create a Java shutter file:
- Connect to the Appliance via SSH.
- Navigate to:
/opt/vmo/app-server/server/vmo/conf/ - Using a text editor, create a file named
java_shutter_filein this directory. - Add these lines to the file, and ensure each is on its own line and does not contain spaces:
org.apache.commons.codec.binary.Base64
java.lang.String - Save and close the file.
- In the same directory, open the
vmo.propertiesfile in a text editor. - Append this line to the end of the file:
com.vmware.scripting.rhino-class-shutter-file=/opt/vmo/app-server/server/vmo/conf/java_shutter_file - Save and close the file.
- Restart the vCenter Orchestrator Server from the vCenter Orchestrator configuration interface.
After completing these steps, the two Java classes defined in step 2-d can be used directly in the JavaScript.
Import and use the package which is attached to this article:
In the package there are two workflows that replace the original library calls:
- Invoke a vShield REST Host: This directly invokes a REST call on a host.
- Invoke a vShield REST operation: This invokes a predefined REST operation on a host.
Create a vShield host using these parameters:
- URL format:
https://10.131.64.160/api - Authorization: Basic
- Shared Session
- username/password
Additional Information
Attachments
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

