Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.4 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

VMware Plugin - AUTH_DIG Example

Hello, could you please give an example of what should be the AUTH_DIG variable under VMware config plugin?

I have tested several conbination, but I still have the following error message:

[vmware] Can't auth with the sevrer https://xxxxxx.domain.com

I have tested:

1) domain\login+password => all encoded in base 64

2) domain\login+password => only password in base 64

3) 1 and 2 but without domain

4) 1, 2 and 3 without +

Help me please !!!! crying


asked in OCS Inventory NG agent for Unix by (300 points)

2 Answers

0 votes
answered by (300 points)
0 votes

Hi, I might be a bit late,

but in order to figure out my auth digest, I used curl:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'vmware-api-session-id: null' 'https://{vcenter-address}/rest/com/vmware/cis/session' --basic -k --user '{user}:{password}' --verbose

you should write your user name in the form of user@domain rather than domain\user.

in the long output, you should find the HTTP request:

> POST /rest/com/vmware/cis/session HTTP/1.1
> Host: {vcenter-address}
> Authorization: Basic QWRtaW5pc3RyYXjhtrewre2c3BoZXJlLmxvYj65OjM1QmFsTWRBPzY5MA==
> User-Agent: curl/7.52.1
> Content-Type: application/json
> Accept: application/json
> vmware-api-session-id: null

You have your digest (I modified mine) on the third line after Authorization: Basic

You have to keep the equal signs in the end.

Last but not least, in your URL before the Auth Digest, don't forget the https:// and the trailing / (like I did....)

Best Regards,


answered by (140 points)
Powered by Question2Answer