Displaying 12 results from an estimated 12 matches for "connectauth".
Did you mean:
connect_auth
2010 Jun 22
0
Question about the remote Authentication in the libvirt Java bindings
Dustin:
I am adding this response to the libvirt list as well so that others may
see it.
The authorization is done via a callback. The ConnectAuthDefault() that
you are using is one such implementation. You could create your own
subclass of ConnectAuth, and override the method:
public abstract int callback(Credential[] cred);
And then provide the username/password in that fashion. Look at the
ConnectAuthDefault in the case statement how i...
2014 Mar 05
1
Flags in java api bindings
I am currently using Connect(String,ConnectAuth,int) constructor, as I
decided to use tcp connection and I need the auth part.
It works, but I still need the read/write flag which, in the
Connect(String, boolean) is a boolean. I need to enable write permits.
In the javadoc no flags are defined...so which is the flag for allow write?
And where c...
2014 Apr 14
1
libvirt Java - vmware (esx driver)
Hi,
I'm trying to connect to a VMware vCenter Server (Version 5.0.0 Build
1300600) using this code:
class CustomConnectAuth extends ConnectAuth {
> CustomConnectAuth() {
>
// credType = ...
// ...
> }
> @Override
> int callback(Credential[] cred) {
> // ...
> return 0
> }
> }
>
ConnectAuth auth = new CustomConnectAuth()
> Connect con...
2019 Apr 18
2
Re: [libvirt] JVM crashes during GC
...he test program I have used:
>
> ==================================================
>
> *package* org.libvirt;
>
>
> *import* org.libvirt.jna.Libvirt;
>
>
> *public* *class* LibvirtCrashTest {
>
> *void* createAndDestroyDefaultAuthConnection() {
>
> ConnectAuth ca = *new* ConnectAuthDefault();
>
> *try* {
>
> System.*out*.println("Starting new connection with default auth");
>
> Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0);
It could be interesting to try different libvirt drivers.
eg "...
2019 Apr 18
3
Re: [libvirt] JVM crashes during GC
...19 10:24 AM, Sachin Soman wrote:
> > Hi,
> >
> > Could you tell me if the following is some known issue?
> >
> > While performing the following simple test, I see my JVM crashing
> > (consistently):
> > 1. Open a connection to an ESXi driver/host (passing ConnectAuthDefault
> > instance).
> > 2. Close the connection.
> > 3. Invoke GC
> >
> > When GC is triggered, at some point, some unallocated native memory is
> > being tried to release. That's failing.
> >
> > The error thrown is:
> >
> > java...
2019 Apr 18
1
Re: [libvirt] JVM crashes during GC
...ing is the test program I have used:
>
> ==================================================
>
> *package* org.libvirt;
>
>
> *import* org.libvirt.jna.Libvirt;
>
>
> *public* *class* LibvirtCrashTest {
>
> *void* createAndDestroyDefaultAuthConnection() {
>
> ConnectAuth ca = *new* ConnectAuthDefault();
>
> *try* {
>
> System.*out*.println("Starting new connection with default auth");
>
> Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0);
>
> Thread.*sleep*(1000);
>
> System.*out*.println("Ex...
2019 Apr 20
2
Re: [libvirt] JVM crashes during GC
...gt;
>> > *package* org.libvirt;
>> >
>> >
>> > *import* org.libvirt.jna.Libvirt;
>> >
>> >
>> > *public* *class* LibvirtCrashTest {
>> >
>> > *void* createAndDestroyDefaultAuthConnection() {
>> >
>> > ConnectAuth ca = *new* ConnectAuthDefault();
>> >
>> > *try* {
>> >
>> > System.*out*.println("Starting new connection with default auth");
>> >
>> > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0);
>>
>>...
2019 Apr 18
0
Re: [libvirt] JVM crashes during GC
...of each file I have
mentioned the environment details.
Following is the test program I have used:
==================================================
*package* org.libvirt;
*import* org.libvirt.jna.Libvirt;
*public* *class* LibvirtCrashTest {
*void* createAndDestroyDefaultAuthConnection() {
ConnectAuth ca = *new* ConnectAuthDefault();
*try* {
System.*out*.println("Starting new connection with default auth");
Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0);
Thread.*sleep*(1000);
System.*out*.println("Explicit connection closure");
connect.cl...
2019 Apr 18
0
Re: [libvirt] JVM crashes during GC
...=====================================
> >
> > *package* org.libvirt;
> >
> >
> > *import* org.libvirt.jna.Libvirt;
> >
> >
> > *public* *class* LibvirtCrashTest {
> >
> > *void* createAndDestroyDefaultAuthConnection() {
> >
> > ConnectAuth ca = *new* ConnectAuthDefault();
> >
> > *try* {
> >
> > System.*out*.println("Starting new connection with default auth");
> >
> > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0);
>
> It could be interesting to try...
2019 Apr 23
0
Re: [libvirt] JVM crashes during GC
...>>> >
>>> >
>>> > *import* org.libvirt.jna.Libvirt;
>>> >
>>> >
>>> > *public* *class* LibvirtCrashTest {
>>> >
>>> > *void* createAndDestroyDefaultAuthConnection() {
>>> >
>>> > ConnectAuth ca = *new* ConnectAuthDefault();
>>> >
>>> > *try* {
>>> >
>>> > System.*out*.println("Starting new connection with default auth");
>>> >
>>> > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", c...
2012 Apr 09
0
virsh works but libvirt-java throws a 'No route to host'
...com.jdrews.VirtAPI.testing;
import org.libvirt.*;
public class VirtAPITesting {
public static void main(String[] args) throws InterruptedException {
System.setProperty("jna.library.path", "/usr/local/lib/");
Connect conn=null;
System.out.println(
ConnectAuth defaultAuth = new ConnectAuthDefault();
try{
conn = new Connect("xenapi://root at 192.168.1.23?no_verify=1",
defaultAuth, 0);
} catch (LibvirtException e){
System.out.println("exception caught:"+e);
System.out.println(e.getErro...
2012 Jun 27
0
Trouble connecting to XenServer HyperVisor with Java bindings
...48:53.313+0000: 26051: debug : do_open:1333 : nwfilter driver
3 remote returned ERROR
Unable to connect: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No
such file or directory
Even though the output mentions not finding a CA certificate, that's not
the problem.
I have a custom ConnectAuth class so the user can give the password before
trying to connect and isn't prompted for it. The problem occurs when trying
to create the Connect Object.
--
Thanks,
Nick Mathews
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archiv...