Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-07 Thread Fernando Casas Schössow
Not urgent I can use this patched source until the next good release. :) Also I think I found another problem that needs to be fixed with one of the functions. libvirt_list_active_domains() returns garbage as a result. On the other hand libvirt_list_inactive_domains and libvirt_list_domains

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-07 Thread Michal Privoznik
On 07.09.2016 13:02, Fernando Casas Schössow wrote: > Ok. I managed to build the new source you shared with me with a couple > of small changes to the spec file I was using. Nothing significant tough. > > And the good news is that the problem is now solved. :) Awesome. I've merged the patches.

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-07 Thread Fernando Casas Schössow
Ok. I managed to build the new source you shared with me with a couple of small changes to the spec file I was using. Nothing significant tough. And the good news is that the problem is now solved. :) I was able to connect to the Hyper-V host, get a list of the VMs, etc from PHP. Thank you

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-07 Thread Fernando Casas Schössow
Thanks for the patches Michal. I'm using OBS to build my custom packages so let me apply this patches and build a new RPM. I will test them and come back to you ASAP. Fer On mié, sep 7, 2016 at 10:44 , Michal Privoznik wrote: On 06.09.2016 19:27, Fernando Casas

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-07 Thread Michal Privoznik
On 06.09.2016 19:27, Fernando Casas Schössow wrote: > Thanks for the explanation Michal. > > I will be looking forward the fix to try it. :) Hey, so before I push the patches to the repo, do you mind testing it? I've uploaded them here: https://mprivozn.fedorapeople.org/php/ you can also find

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-06 Thread Fernando Casas Schössow
Thanks for the explanation Michal. I will be looking forward the fix to try it. :) On mar, sep 6, 2016 at 6:59 , Michal Privoznik wrote: On 06.09.2016 13:45, Fernando Casas Schössow wrote: Thanks for the instructions since I'm not familiar with debugging as you

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-06 Thread Michal Privoznik
On 06.09.2016 13:45, Fernando Casas Schössow wrote: > Thanks for the instructions since I'm not familiar with debugging as you > probably guessed. :) > > Here you have gdb output: > > GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7 > Copyright (C) 2013 Free Software Foundation, Inc. >

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-06 Thread Michal Privoznik
On 05.09.2016 23:08, Fernando Casas Schössow wrote: > Hi again Michal, > > I have more information to share. > I think I can confirm that the patches are actually fixing the > credentials problem and they are passed along. > This is the content of test.log with libvirt-php output: > >

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-05 Thread Fernando Casas Schössow
Hi again Michal, I have more information to share. I think I can confirm that the patches are actually fixing the credentials problem and they are passed along. This is the content of test.log with libvirt-php output: [2016-09-05 22:06:05 libvirt-php/core ]: libvirt_connect: credentials

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-05 Thread Fernando Casas Schössow
Thanks for your reply Michal. Actually you don't need a Hyper-V server to reproduce the problem since the connection to the server is never initiated because the process crash before that stage (got wireshark on the network to confirm this). So you should be able to reproduce the problem

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-05 Thread Michal Privoznik
On 02.09.2016 11:11, Fernando Casas Schössow wrote: > I'm running libvirt-php 0.5.2 on CentOS 7 with libvirt 2.1.0. > Using virsh I'm able to connect to hyper-v hosts correctly but using > libvirt-php it fails during authentication since it seems that the > credentials are not being passed along.

[libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-02 Thread Fernando Casas Schössow
I'm running libvirt-php 0.5.2 on CentOS 7 with libvirt 2.1.0. Using virsh I'm able to connect to hyper-v hosts correctly but using libvirt-php it fails during authentication since it seems that the credentials are not being passed along. This is the php code I'm using: $credentials =