Displaying 20 results from an estimated 49 matches for "openauth".
2014 Jun 06
2
Libvirt Python Bindings - Remote Connection using openAuth.
Hi,
I am using libvirt with python binding, and I want to connect to a remote
host.
I was able to connect after making ssh certificate, but It is not
applicable for my project.
So I want to use openAuth() method, but I could not succeed connecting to a
remote host using it.
Here is my code
------------------------
import libvirt
USER = "root"
PASS = "mypasswd"
def authcb(credentials, user_data):
for credential in credentials:
if credential[0] == libvirt.VIR_CRE...
2015 Nov 03
2
xen+ssh with openauth
...9;)
for cred in credentials:
if cred[0] == libvirt.VIR_CRED_AUTHNAME:
cred[4] = username
elif cred[0] == libvirt.VIR_CRED_PASSPHRASE:
cred[4] = passwd
return 0
auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE], req, None]
con = libvirt.openAuth(uri, auth, 0)
============================================================================
The script never enter req() method but prompts for password, after I enter
the password I am able to connect to the remote machine.
I did try to put all the flags ie:
auth = [[1,2,3,4,5,6,7,8], req, None]...
2012 Aug 26
1
question about using openAuth with Python
Hi guys
Is anybody can help me how to use openAuth to connect a remote URI without
input the boring password? we assume the password of root for remote
machine is "123456".
Even I running the example in libvirt library esxlist.py(change uri to a
qemu type and assign the username and password).
Bellow is my simple test code, unfortunate...
2014 Jun 06
1
Re: Libvirt Python Bindings - Remote Connection using openAuth.
...06, 2014 at 01:06:55PM +0530, Sijo Jose wrote:
>
>> Hi,
>> I am using libvirt with python binding, and I want to connect to a remote
>> host.
>> I was able to connect after making ssh certificate, but It is not
>> applicable for my project.
>> So I want to use openAuth() method, but I could not succeed connecting to
>> a
>> remote host using it.
>>
>> Here is my code
>> ------------------------
>>
>> import libvirt
>>
>>
>> USER = "root"
>> PASS = "mypasswd"
>>
>> de...
2015 Nov 03
0
Re: xen+ssh with openauth
...if cred[0] == libvirt.VIR_CRED_AUTHNAME:
> cred[4] = username
> elif cred[0] == libvirt.VIR_CRED_PASSPHRASE:
> cred[4] = passwd
> return 0
>
> auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE], req, None]
> con = libvirt.openAuth(uri, auth, 0)
> ============================================================================
>
> The script never enter req() method but prompts for password, after I enter
> the password I am able to connect to the remote machine.
The '+ssh' method actually spawns the /usr/bi...
2015 Nov 11
0
Re: xen+ssh with openauth
...cred[4] = username
> > > elif cred[0] == libvirt.VIR_CRED_PASSPHRASE:
> > > cred[4] = passwd
> > > return 0
> > >
> > > auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE], req, None]
> > > con = libvirt.openAuth(uri, auth, 0)
> > > ============================================================================
> > >
> > > The script never enter req() method but prompts for password, after I enter
> > > the password I am able to connect to the remote machine.
> >
>...
2015 Nov 11
2
Re: xen+ssh with openauth
...D_AUTHNAME:
> > cred[4] = username
> > elif cred[0] == libvirt.VIR_CRED_PASSPHRASE:
> > cred[4] = passwd
> > return 0
> >
> > auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE], req, None]
> > con = libvirt.openAuth(uri, auth, 0)
> > ============================================================================
> >
> > The script never enter req() method but prompts for password, after I enter
> > the password I am able to connect to the remote machine.
>
> The '+ssh' meth...
2014 Jun 06
0
Re: Libvirt Python Bindings - Remote Connection using openAuth.
On Fri, Jun 06, 2014 at 01:06:55PM +0530, Sijo Jose wrote:
>Hi,
>I am using libvirt with python binding, and I want to connect to a remote
>host.
>I was able to connect after making ssh certificate, but It is not
>applicable for my project.
>So I want to use openAuth() method, but I could not succeed connecting to a
>remote host using it.
>
>Here is my code
>------------------------
>
>import libvirt
>
>
>USER = "root"
>PASS = "mypasswd"
>
>def authcb(credentials, user_data):
> for credential in cred...
2017 Apr 15
1
Libvirt and libssh2 with openauth
Hi all,
i have same question as this one
https://www.redhat.com/archives/libvirt-users/2014-March/msg00158.html. (
Only im using python)
Is there any new follow-up on this?
Thanks
2010 Sep 30
1
Ruby-libvirt and openAuth
Hello,
It looks like the Ruby bindings do not support virConnectOpenAuth. Is this
true? If so, is there any reason why? or plans to?
Thanks,
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100930/b4267ba7/attachment.htm>
2018 Dec 05
2
Re: Libvirt api for esx
...if credential[0] == libvirt.VIR_CRED_AUTHNAME:
credential[4] = SASL_USER
elif credential[0] == libvirt.VIR_CRED_PASSPHRASE:
credential[4] = SASL_PASS
return 0
auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE],
request_cred, None]
conn = libvirt.openAuth("esx://<vm name>?no_verify=1", auth, 0)
if conn == None:
print('Failed to open connection to qemu+tcp://localhost/system',
file=sys.stderr)
exit(1)
conn.close()
Error Snippet: -
File
"/usr/software/pkgs/Python-3.4.3/lib/python3.4/site-packages/libvirt.py"...
2008 Jul 21
1
Processed (with 1 errors): xen-utils-common: should allow local unix connections for virt-manager by default
Processing commands for control at bugs.debian.org:
> reassign 491660 xen-utils-common 3.2.0-2
Bug#491660: virt-manager: fails to connect to DOM0 (libvirtError in openAuth)
Bug reassigned from package `virt-manager' to `xen-utils-common'.
> retitle 491660 xen-utils-common: should allow local unix connections
Bug#491660: virt-manager: fails to connect to DOM0 (libvirtError in openAuth)
Changed Bug title to `xen-utils-common: should allow local unix connect...
2018 Dec 06
2
Re: Libvirt api for esx
...credential[4] = SASL_USER
> > elif credential[0] == libvirt.VIR_CRED_PASSPHRASE:
> > credential[4] = SASL_PASS
> > return 0
> >auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE],
> >request_cred, None]
> >conn = libvirt.openAuth("esx://<vm name>?no_verify=1", auth, 0)
>
> I don't know. I don't have any ESX machine handy. Try to do some
> debugging.
> Maybe the fact that you have the VM name here instead of the ESX server.
>
> Does the esxlist.py from python examples work? Maybe...
2010 Jun 02
2
libvirt 0.8.1
...'xen:///'':
no hypervisor driver available for xen:///
Traceback (most recent call last):
File "/usr/local/share/virt-manager/virtManager/connection.py", line
971, in _try_open
None], flags)
File "/usr/lib/python2.6/dist-packages/libvirt.py", line 111, in openAuth
if ret is None:raise libvirtError(''virConnectOpenAuth() failed'')
libvirtError: no hypervisor driver available for xen:///
Any ideas?
Thanks
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-u...
2011 Sep 05
5
Unable to connect
...ot;unable to connect to ''localhost:8000'': Connection refused
Traceback
(most recent call last):
File
"/usr/share/virt-manager/virtManager/connection.py", line 983, in
_try_open
None], flags)
File
"/usr/lib64/python2.7/site-packages/libvirt.py", line 107, in openAuth
if ret is None:raise libvirtError(''virConnectOpenAuth()
failed'')
libvirtError: unable to connect to ''localhost:8000'': Connection
refused"
I do not remember having that problem before and the first
time I booted the machine I was able to connect and start...
2018 Dec 12
1
Re: Libvirt api for esx
...> elif credential[0] == libvirt.VIR_CRED_PASSPHRASE:
>>> > credential[4] = SASL_PASS
>>> > return 0
>>> >auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE],
>>> >request_cred, None]
>>> >conn = libvirt.openAuth("esx://<vm name>?no_verify=1", auth, 0)
>>>
>>> I don't know. I don't have any ESX machine handy. Try to do some
>>> debugging.
>>> Maybe the fact that you have the VM name here instead of the ESX server.
>>>
>>> Does t...
2011 Dec 26
1
How to connect to a remote VM ESXi server with Python language?
Hi, Dear Mr/Mrs.
I have trouble in connecting to a VM ESXi server with python.
I am a developer using libvirt to control remote VM ESXi with python
language. But I am not able to connect to a remote VM ESXi server.
I make my try to solve this issue:
1: I use the function libvirt.Open() to open the remote VM ESXi Server, but
I don't know how to input the password. It seems that there is no
2012 May 02
2
Python Libvirt Bindings
Hi,
Can anyone please share sample Python code for using qemu+tcp with SASL or qemu+tls with SASL? (i.e., connecting to a hypervisor using qemu+tls or qemu+tcp when a username/password using SASL has been defined on the hypervisor)
I am having some trouble figuring out how to use callbacks for authenticating from with my Python program.
I assume I will have to
2012 May 18
0
How to use Python Binding with Lbivirt.
...C sample code. Do you know the reason??
Here is the message:
libvir: RPC error : authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)
Traceback (most recent call last):
? File "esxList.py", line 101, in ?
? ? conn = libvirt.openAuth(uri, auth, 0)
? File "/usr/lib/python2.4/site-packages/libvirt.py", line 102, in openAuth
? ? if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No wo...
2014 Jun 23
1
qemu+tls question
...usr/share/virt-manager/virtManager/connection.py",
line 1056, in _open_thread self._backend.open
(self._do_creds_password) File
"/usr/share/virt-manager/virtinst/connection.py", line 158,
in open open_flags) File
"/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in
openAuth if ret is None:raise libvirtError('virConnectOpenAuth
() failed') libvirtError: Unable to read TLS confirmation:
Input/output error
Any suggestions?
--
Fl@sh