r5917: First step in using the new cli_credentials structure. This patch
[bbaumbach/samba-autobuild/.git] / source4 / lib / registry / tools / regtree.c
index f061f33bd3f41a8179ca172736e23fe463217fa7..81a7fb7f995682bf073db7b24ff8251c0df3e2e3 100644 (file)
@@ -105,7 +105,7 @@ static void print_tree(int l, struct registry_key *p, int fullpath, int novals)
        setup_logging("regtree", True);
 
        if (remote) {
-               error = reg_open_remote(&h, cmdline_get_username(), cmdline_get_userpassword(), remote);
+               error = reg_open_remote(&h, cli_credentials_get_username(cmdline_credentials), cli_credentials_get_password(cmdline_credentials), remote);
        } else if (backend) {
            error = reg_open_hive(NULL, backend, poptGetArg(pc), NULL, &root);
        } else {