rpc_client/cli_lsarpc.o \
rpc_client/cli_wkssvc.o \
rpc_client/cli_srvsvc.o \
- rpc_client/cli_samr.o
+ rpc_client/cli_samr.o \
+ rpc_client/cli_reg.o
LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
res = res ? cli_nt_setup_creds(smb_cli, trust_passwd) : False;
+#if 0
/* change the machine password? */
if (global_machine_password_needs_changing)
{
memset(new_trust_passwd, 0, 16);
}
+#endif
memset(trust_passwd, 0, 16);
/* open SAMR session. */
res = res ? cli_nt_session_open(smb_cli, PIPE_SAMR) : False;
+#if 0
/* establish a connection. */
res = res ? do_samr_get_dom_pwinfo(smb_cli, srv_name) : False;
srv_name, smb_cli->user_name,
nt_newpass, nt_hshhash,
lm_newpass, lm_hshhash) : False;
+#endif
/* close the session */
cli_nt_session_close(smb_cli);
/* open SAMR session. */
res = res ? cli_nt_session_open(smb_cli, PIPE_SAMR) : False;
+#if 0
/* establish a connection. */
res = res ? do_samr_get_dom_pwinfo(smb_cli, srv_name) : False;
+#endif
/* close the session */
cli_nt_session_close(smb_cli);
&info->dom.samr_pol_connect, admin_rid, &sid1,
&info->dom.samr_pol_open_domain) : False;
+#if 0
/* send a query on the aliase */
res = res ? do_samr_query_lookup_rids(smb_cli,
&info->dom.samr_pol_open_domain, admin_rid, num_aliases, alias_rid,
&num_aliases, alias_names, num_als_usrs) : False;
+#endif
if (res)
{
int i;
for (i = 0; i < sec_acl->num_aces; i++)
{
- display_sec_ace(out_hnd, ACTION_HEADER , &sec_acl->ace_list[i]);
- display_sec_ace(out_hnd, ACTION_ENUMERATE, &sec_acl->ace_list[i]);
- display_sec_ace(out_hnd, ACTION_FOOTER , &sec_acl->ace_list[i]);
+ display_sec_ace(out_hnd, ACTION_HEADER , &sec_acl->ace[i]);
+ display_sec_ace(out_hnd, ACTION_ENUMERATE, &sec_acl->ace[i]);
+ display_sec_ace(out_hnd, ACTION_FOOTER , &sec_acl->ace[i]);
}
}
printf("Please use rpcclient from the SAMBA_TNG cvs tag.\n");
printf("Please refer to http://samba.org/cvs.html for details.\n");
+/*
#ifndef DEBUG_PASSWORD
exit(-1);
#endif
+*/
out_hnd = stdout;
fstrcpy(debugf, argv[0]);