domain aliases added a bit better: does local aliases if you query
[samba.git] / source3 / rpcclient / cmd_samr.c
index fa4c631899e711984829038ec13388c013874f01..fa3253edf9c39b5e1491d7af059942ab43880037 100644 (file)
@@ -99,8 +99,8 @@ void cmd_sam_ntchange_pwd(struct client_info *info)
        /* establish a connection. */
        res = res ? do_samr_chgpasswd_user(smb_cli,
                                           srv_name, smb_cli->user_name,
-                                          nt_newpass, (char*)nt_hshhash,
-                                          lm_newpass, (char*)lm_hshhash) : False;
+                                          nt_newpass, nt_hshhash,
+                                          lm_newpass, lm_hshhash) : False;
        /* close the session */
        cli_nt_session_close(smb_cli);
 
@@ -495,7 +495,7 @@ void cmd_sam_query_groups(struct client_info *info)
                    &info->dom.samr_pol_open_domain) : False;
 
        /* send a samr 0x8 command */
-       res = res ? do_samr_unknown_8(smb_cli,
+       res = res ? do_samr_query_dom_info(smb_cli,
                    &info->dom.samr_pol_open_domain, switch_value) : False;
 
        res = res ? do_samr_close(smb_cli,