[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Authentication on XenAPi



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.