pysphere
pysphere copied to clipboard
Connecting using Kerberos / AD
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
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
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:
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
Usage:
>>> from pysphere import VIServer
>>> server = VIServer()
>>> server.connect('servername', passthrough=True)
Original comment by [email protected]
on 18 Mar 2014 at 5:40
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: