Open thiiferrs opened 4 years ago
Hello
My OCS inventory don't appears data from OCS vmware plugin, on Inventory Datacenter list only show No data available in table.
I test connection using curl and the authentiction return is code 200.
See below the config file (Vmware.pm) and curl returns;
# Auth my @auth_hashes = ( { URL => "https://...", #AUTH_DIG => "ocs@vsphere.local:PASSWORD", AUTH_DIG => "b2NzQHZzcGhlcmUubG9jYWw6Q2xhcm9AMjE=", }, );
$ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'vmware-api-session-id: null' 'https://...' --basic -k --user 'ocs@vsphere.local:PASSWORD' --verbose
* Trying 10.x.x.x... * TCP_NODELAY set * Connected to ... (10.x.x.x) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 * ALPN, server did not agree to a protocol * Server certificate: * subject: CN=...; C=US * start date: Mar 22 19:36:24 2019 GMT * expire date: Mar 16 19:36:23 2029 GMT * issuer: CN=CA; DC=vsphere; DC=local; C=US; ST=California; O=...; OU=VMware Engineering * SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. * Server auth using Basic with user 'ocs@vsphere.local' > POST /rest/com/vmware/cis/session HTTP/1.1 > Host: ... > Authorization: Basic b2NzQHZzcGhlcmUubG9jYWw6Q2xhcm9AMjE= > User-Agent: curl/7.61.1 > Content-Type: application/json > Accept: application/json > vmware-api-session-id: null > < HTTP/1.1 200 OK < Date: Wed, 24 Jun 2020 15:18:11 GMT < Set-Cookie: vmware-api-session-id=7f3822af4f475a41e19a2ae99c0243bd;Path=/rest;Secure;HttpOnly < Expires: Thu, 01 Jan 1970 00:00:00 GMT < Content-Type: application/json < Transfer-Encoding: chunked < * Connection #0 to host ... left intact
Best Regards, Thiago
Nobody? :(
Hello
My OCS inventory don't appears data from OCS vmware plugin, on Inventory Datacenter list only show No data available in table.
I test connection using curl and the authentiction return is code 200.
See below the config file (Vmware.pm) and curl returns;
$ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'vmware-api-session-id: null' 'https://...' --basic -k --user 'ocs@vsphere.local:PASSWORD' --verbose
Best Regards, Thiago