Closed abuibrahim closed 8 years ago
Hello Did you test this with other hypervisors? Right now I'm just not sure how that supposed to work... Maybe add another function, smth like openConnectionPromptAuth, instead of chaning existing one?
I tested qemu+ssh backend to make sure I didn't brake it. This fixes Hyper-V as well. See https://libvirt.org/drvhyperv.html (authentication section).
I was thinking of adding another openConnectionAuth but exposing the virConnectAuth struct with callbacks and everything to Haskell looked a bit cumbersome. virConnectOpenAuth with virConnectAuthPtrDefault passed in behaves the same as virConnectOpen and unbreaks ESXi and Hyper-V. Since this change doesn't break any existing code we could treat it as improvement of "openConnection" IMHO.
openConnection will now prompt for username/password when connecting to ESXi. Tested with VMware vSphere Hypervisor 6.