pysphere icon indicating copy to clipboard operation
pysphere copied to clipboard

Connecting using Kerberos / AD

Open GoogleCodeExporter opened this issue 9 years ago • 5 comments

Connect to pysphere using Kerberos / AD

From: https://groups.google.com/forum/#!topic/pysphere/jcFn6ZtwUgk

This should be done by implementing this function: 
http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.Sess
ionManager.html#loginBySSPI

Original issue reported on code.google.com by [email protected] on 31 Jul 2012 at 1:06

GoogleCodeExporter avatar Apr 14 '15 07:04 GoogleCodeExporter

Thanks. I'm happy to try to test for you if it helps.

Original comment by [email protected] on 31 Jul 2012 at 6:23

GoogleCodeExporter avatar Apr 14 '15 07:04 GoogleCodeExporter

Implemented using sspi module from http://sourceforge.net/projects/pywin32/. 
Tested with ESXi 4.1. Patch attached.

Original comment by [email protected] on 16 Mar 2014 at 6:36

Attachments:

GoogleCodeExporter avatar Apr 14 '15 07:04 GoogleCodeExporter

Also works with standalone ESXi 5.0/Win 2008 R2 SP1/Python 2.7.5/Pywin32 218

Original comment by [email protected] on 18 Mar 2014 at 2:25

GoogleCodeExporter avatar Apr 14 '15 07:04 GoogleCodeExporter

Usage:
>>> from pysphere import VIServer
>>> server = VIServer()
>>> server.connect('servername', passthrough=True)

Original comment by [email protected] on 18 Mar 2014 at 5:40

GoogleCodeExporter avatar Apr 14 '15 07:04 GoogleCodeExporter

Added MIT Kerberos authentication.
Tested on CentOS 6.5 and Gentoo with ESXi 4.1 and Windows 2008 R2 as KDC.
python-kerberos/pykerberos package should be installed in client system.

Usage:
in shell:
$ kinit [email protected]

after that in python:
>>> from pysphere import VIServer
>>> server = VIServer()
>>> server.connect('servername', passthrough=True)

Original comment by [email protected] on 23 Mar 2014 at 7:20

Attachments:

GoogleCodeExporter avatar Apr 14 '15 07:04 GoogleCodeExporter