WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] Authentication on XenAPi

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Authentication on XenAPi
From: "lestat thor" <lestathor@xxxxxxxxxxxxx>
Date: Thu, 5 Jul 2007 15:39:20 +0100
Delivery-date: Thu, 05 Jul 2007 07:47:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I'm making a Webmin module to monitor my Xen servers, based on a perl script, 
writed by Ingard Mevåg (thank a lot).

But I am not able to connect me on a XenApi session, because I don't understand 
how to configure xend-config.sxp file.

Here the lines i'm using to connect to a session on my perl script :

##### CONFIG ######
my %xenhosts = ("192.168.0.12" => {"port" => "9363"},"localhost" => {"port" => 
"9363"} ); 
##### CONFIG END ###

##### STATIC VARS #####
my %host_info;
#######################
my $xen = RPC::XML::Client->new("http://$xenhost:$xenhosts{$xenhost}{'port'}");
            my $session = $xen->simple_request("session.login_with_password", " 
"," ");
              if (! $session)
              {
                       print "Can't connect to $xenhost :(\n";
                       $xenhosts{$xenhost} = {'xen' => $xen, 'session' => ""};
               }
               else
               {
                       $xenhosts{$xenhost} = {'xen' => $xen, 'session' => 
$session->{'Value'}};
                       print "Connected successfully to $xenhost..\n";
               }

When I Launch my script, there result "Can't connect to $xenhost :(".

Where are the loggin and password authentication,in which file?
Could you help me to choose the good parameter  in :
(xend-http-server no)
(xend-unix-server no)
(xend-tcp-xmlrpc-server no)
(xend-unix-xmlrpc-server yes)
(xend-relocation-server no)
(xend-relocation-server yes)
(xend-unix-path /var/lib/xend/xend-socket)
...

Thanks

=


-- 
Powered by Outblaze

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>