RE: Clarification regarding OpenPegasus connect API
"Deshpande, Rohini \(STSD\)" <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <7F47D5B1D1DE244DBBF1F2BC7576EB273C7FD42CC1@GVW1156EXB.americas.hpqcorp.net> |
Hi Hitha, For the Pegasus client, session id generated from sfcb client is used, as it gets the session id by first connecting to vcenter using soap api's to get the session id for the respective esx hosts. Regards, Rohini From: V, Hitha [mailto:[email protected]] Sent: Thursday, May 12, 2011 12:33 PM To: V, Hitha; Sampige, Sahana Prabhakar (R&D Bangalore) Cc: [email protected]; Subramaniya Karayalar; Acharya, Bharath Subject: RE: Clarification regarding OpenPegasus connect API Hi Sahana, As you suggested, we tried to connect using the sessionID. But it did not accept the session ID as a valid user name. Can you help? Regards, Hitha V From: V, Hitha [mailto:[email protected]] Sent: Wednesday, April 20, 2011 4:25 PM To: Sampige, Sahana Prabhakar (R&D Bangalore) Cc: [email protected]; Subramaniya Karayalar; Acharya, Bharath Subject: RE: Clarification regarding OpenPegasus connect API Hi Sahana, Thanks a lot for the reply. We will try out the same and revert in case of any clarifications. Regards, Hitha V From: Sampige, Sahana Prabhakar (R&D Bangalore) [mailto:[email protected]] Sent: Wednesday, April 20, 2011 4:18 PM To: V, Hitha Cc: [email protected] Subject: RE: Clarification regarding OpenPegasus connect API From what I understand, session ID is a user name valid for 15 mins. So once you connect via that session ID as the user name the connection should be established. -Sahana From: V, Hitha [mailto:[email protected]] Sent: Wednesday, April 20, 2011 4:18 PM To: Sampige, Sahana Prabhakar (R&D Bangalore); Deshpande, Rohini (STSD); [email protected] Cc: Acharya, Bharath; Subramaniya Karayalar Subject: RE: Clarification regarding OpenPegasus connect API Hi Sahana, Which version of OpenPegasus supports this API? Following were the only variants of connect that I saw in OpenPegasus API documentation: [cid:[email protected]]<http://cvs.opengroup.org/pegasus-doc/CIMClient.html#DOC.1.3.1.1.5>void connect ( const String<http://cvs.opengroup.org/pegasus-doc/String.html>& host, const Uint32 portNumber, const String<http://cvs.opengroup.org/pegasus-doc/String.html>& userName, const String<http://cvs.opengroup.org/pegasus-doc/String.html>& password ) Creates an HTTP connection with the CIM server defined by the host and portNumber. [cid:[email protected]]<http://cvs.opengroup.org/pegasus-doc/CIMClient.html#DOC.1.3.1.1.6>void connect ( const String<http://cvs.opengroup.org/pegasus-doc/String.html>& host, const Uint32 portNumber, const SSLContext<http://cvs.opengroup.org/pegasus-doc/SSLContext.html>& sslContext, const String<http://cvs.opengroup.org/pegasus-doc/String.html>& userName, const String<http://cvs.opengroup.org/pegasus-doc/String.html>& password ) Creates an HTTP connection with the server defined by the URL address. [cid:[email protected]]<http://cvs.opengroup.org/pegasus-doc/CIMClient.html#DOC.1.3.1.1.7>void connectLocal () Creates connection to the server for Local clients. Regards, Hitha V From: Sampige, Sahana Prabhakar (R&D Bangalore) [mailto:[email protected]] Sent: Wednesday, April 20, 2011 2:57 PM To: Deshpande, Rohini (STSD); V, Hitha; [email protected] Cc: Acharya, Bharath; Subramaniya Karayalar Subject: RE: Clarification regarding OpenPegasus connect API Hi Hitha, Open Pegasus allows you to connect via the CIMClient::connect api where you can provide the ESX Host Session ID. We have tried it and it works. What is not supported today is that, the CIMClient does not communicate with the ESX Host to fetch the session ID. This is probably present in the SFCB Client today. Rgds, Sahana From: Deshpande, Rohini (STSD) Sent: Wednesday, April 20, 2011 11:10 AM To: V, Hitha; [email protected] Cc: Acharya, Bharath; Subramaniya Karayalar Subject: RE: Clarification regarding OpenPegasus connect API Hitha, Currently, connecting to a CIMOM using session ID or ticket is not supported in Open Pegasus. There is connectLocal() which connects to the local CIM Server as the current user. Regards, Rohini From: V, Hitha [mailto:[email protected]] Sent: Tuesday, April 19, 2011 5:45 PM To: [email protected] Cc: Acharya, Bharath; Subramaniya Karayalar Subject: Clarification regarding OpenPegasus connect API Hi, As part of supporting VMWare's lockdown mode (http://blogs.vmware.com/esxi/2010/09/the-new-lockdown-mode-in-esxi-41.html), we would like to know whether OpenPegasus provides any API that accepts a session ID (or a ticket) instead of username and password to connect to a CIMOM. Since lockdown mode does not allow login in using the user name/ password and mandates that any CIM client connects using a ticket issued by a managing entity, it is necessary that we have APIs that would support such a mechanism. Any help in this regard will be highly appreciated. Regards, Hitha V
image001.gif
(image/gif, 326 B) - not displayed