summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-08-30 17:07:53 +0000
committerLuke Leighton <lkcl@samba.org>1999-08-30 17:07:53 +0000
commit501acbba23fb5b6830ec6311ab53475a945a13b2 (patch)
tree893e0f158f7f5ec1c3a5bcb1761ab9abc65cd8ad /source3/rpc_client
parent42fdd41b1d3e59f9052a9b382d0369315f77e718 (diff)
downloadsamba-501acbba23fb5b6830ec6311ab53475a945a13b2.tar.gz
samba-501acbba23fb5b6830ec6311ab53475a945a13b2.tar.bz2
samba-501acbba23fb5b6830ec6311ab53475a945a13b2.zip
added call to samr_query_groupinfo in enumgroups command (-m option)
(This used to be commit e2a72e2c64d6aad37d0c0f94d36f4fdadd3bd6cc)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_samr.c57
1 files changed, 57 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c
index 5e381ba523..7cc2dff6b4 100644
--- a/source3/rpc_client/cli_samr.c
+++ b/source3/rpc_client/cli_samr.c
@@ -1266,6 +1266,63 @@ BOOL samr_create_dom_alias(struct cli_state *cli, uint16 fnum,
return valid_pol;
}
+#if 0
+/****************************************************************************
+do a SAMR Get Alias Info
+****************************************************************************/
+BOOL samr_get_aliasinfo(struct cli_state *cli, uint16 fnum,
+ POLICY_HND *alias_pol, ALIAS_INFO_CTR *ctr)
+{
+ prs_struct data;
+ prs_struct rdata;
+
+ SAMR_Q_GET_ALIASINFO q_o;
+ BOOL valid_pol = False;
+
+ if (alias_pol == NULL || ctr == NULL) return False;
+
+ /* create and send a MSRPC command with api SAMR_GET_ALIASINFO */
+
+ prs_init(&data , 1024, 4, SAFETY_MARGIN, False);
+ prs_init(&rdata, 0 , 4, SAFETY_MARGIN, True );
+
+ DEBUG(4,("SAMR Get Alias Info\n"));
+
+ /* store the parameters */
+ make_samr_q_get_aliasinfo(&q_o, alias_pol, ctr);
+
+ /* turn parameters into data stream */
+ samr_io_q_get_aliasinfo("", &q_o, &data, 0);
+
+ /* send the data on \PIPE\ */
+ if (rpc_api_pipe_req(cli, fnum, SAMR_GET_ALIASINFO, &data, &rdata))
+ {
+ SAMR_R_GET_ALIASINFO r_o;
+ BOOL p;
+
+ samr_io_r_get_aliasinfo("", &r_o, &rdata, 0);
+ p = rdata.offset != 0;
+
+ if (p && r_o.status != 0)
+ {
+ /* report error code */
+ DEBUG(0,("SAMR_R_GET_ALIASINFO: %s\n", get_nt_error_msg(r_o.status)));
+ p = False;
+ }
+
+ if (p)
+ {
+ valid_pol = True;
+ }
+ }
+
+ prs_mem_free(&data );
+ prs_mem_free(&rdata );
+
+ return valid_pol;
+}
+#endif
+
/****************************************************************************
do a SAMR Set Alias Info
****************************************************************************/