This way it is possible to connect to URIs that require some kind of
authentication.
Some (Sys.argv.(1))
else
None in
- let conn = C.connect_readonly ?name () in
+ let conn = C.connect_auth_readonly ?name (C.get_auth_default ()) in
let spinner = [| '|'; '/'; '-'; '\\' |] in
exit 1
);
- let conn = C.connect_readonly () in
+ let conn = C.connect_auth_readonly (C.get_auth_default ()) in
let what = [
D.StatsState;
);
let domname = Sys.argv.(1) in
- let conn = C.connect_readonly () in
+ let conn = C.connect_auth_readonly (C.get_auth_default ()) in
(*
let nr_pcpus =
Some (Sys.argv.(1))
else
None in
- let conn = C.connect_readonly ?name () in
+ let conn = C.connect_auth_readonly ?name (C.get_auth_default ()) in
(* List all domains (running and inactive). *)
let domains = D.get_domains_and_infos conn [D.ListAll] in
Some (Sys.argv.(1))
else
None in
- let conn = C.connect_readonly ?name () in
+ let conn = C.connect_auth_readonly ?name (C.get_auth_default ()) in
(* Get node_info, hostname, etc. *)
let node_info = C.get_node_info conn in