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.11.1 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


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

4 Answers

0 votes
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,


by (140 points)
0 votes
I tried doing the following but still can't authenticate:

       URL  => "https://spvvapvc65101.corp.priv/",

       AUTH_DIG     => "s-mon\@DOMAIN:cy1tb25ARElBR0xBQlM6bDdqbmJ1QVc=",
by (340 points)
0 votes

Incase someone was stuck like I was:


AUTH_DIG     => "s-mon\@DOMAIN:cy1tb25ARElBR0xBQlM6bDdqbmJ1QVc=",


You get the value by doing the following:

echo -n "username@DOMAIN:password" | base64

AUTH_DIG     => "cy1tb25ARElBlM6bDdqbmJ1QVc=",

by (340 points)
Powered by Question2Answer