Vim25 A general system error has occurred: Authorized Exception

I am trying to check if a vCenter user has rights or not in the root folder using the VIM25 library . I am using the hasPrivilegeOnEntity method .

vimport.hasPrivilegeOnEntity(authorizationManager, rootFolder, userSessionKey, privilages);

The code works fine for vCenter Server 6.0, but does not work for version 5.5, with the following exception.

com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: A general system error occurred: Authorize Exception Please see the server log to find more detail regarding exact cause of the failure.
    at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
    at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:124)
    at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
    at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
    at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
    at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
    at com.sun.proxy.$Proxy37.hasPrivilegeOnEntity(Unknown Source)

Detailed message: A general system error occurred: Authorized Exception

+4
source share
1 answer

We use certain privileges to check a specific object for logging in. VMware has a list of privileges.

vCenter 5.5 265 , vCenter 6.0 310 .

( vCenter 5.5), vCenter 6.0 .

.

, vCenter 5.5 6.0. 2 .

+3

Source: https://habr.com/ru/post/1679047/


All Articles