Hi all,<br><br>I've started playing with libvirt-php yesterday and with the help of Michal Novotny got it running quite painlessly. However, the login from PHP to my testing ESXi server seems to be failing. I've wiresharked the HTTP traffic with a virsh -c (which works) and compared that to the traffic I see when using the libvirt-php extension, here's the difference I see (mind the username)<br>

<br>Not working (libvirt-php)<br><br><Login xmlns="urn:vim25"><_this xmlns="urn:vim25" xsi:type="ManagedObjectReference" type="SessionManager">ha-sessionmgr</_this><userName xmlns="urn:vim25" xsi:type="xsd:string">root8.</userName><password xmlns="urn:vim25" xsi:type="xsd:string">fakepass</password></Login><br>

<br>Working (virsh -c)<br><br><Login xmlns="urn:vim25"><_this xmlns="urn:vim25" xsi:type="ManagedObjectReference" type="SessionManager">ha-sessionmgr</_this><userName xmlns="urn:vim25" xsi:type="xsd:string">root</userName><password xmlns="urn:vim25" xsi:type="xsd:string">fakepass</password></Login><br>

<br>So for some reason something gets appended (8.) or encoded wrong or something when I use the PHP extension. This is the testing code I run:<br><br><?php<br>$credentials = array(VIR_CRED_AUTHNAME=>'root',VIR_CRED_PASSPHRASE=>'fakepass');<br>

$conn = libvirt_connect("esx://<a href="http://10.9.0.2?transport=http">10.9.0.2?transport=http</a>", FALSE, $credentials);<br>if($conn) {<br>    print_r(libvirt_connect_get_hypervisor($conn));<br>    <br>} else {<br>

    echo "Connection failed: ".libvirt_get_last_error();<br>}<br><br>Any help with this issue would be greatly appreciated. Thanks!<br><br>Best regards,<br>Koen Calliauw<br>