summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-12 21:11:03 +0100
committerGünther Deschner <gd@samba.org>2008-02-12 21:11:03 +0100
commita9cf5a0e9c1bea7d75adb99fed81f4bbb0fa2814 (patch)
tree7deef2dcdeca6761941fe6cac7316eb5c37fe561 /source3/rpc_client
parent68855a99d0206889e5af018d956a2ea5cd33d264 (diff)
downloadsamba-a9cf5a0e9c1bea7d75adb99fed81f4bbb0fa2814.tar.gz
samba-a9cf5a0e9c1bea7d75adb99fed81f4bbb0fa2814.tar.bz2
samba-a9cf5a0e9c1bea7d75adb99fed81f4bbb0fa2814.zip
The final SAM_USER_INFO massacre.
I compared those very thoroughly with the idl ones but couldn't find any bits that were missing (except for the very obscure (and totally unused) SAM_USER_INFO_17 structure which I think was totally wrong). Guenther (This used to be commit e7192818f79725060d2b12d44186ba8c5bae2fb8)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_samr.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c
index caf58d384b..2bf6e3698a 100644
--- a/source3/rpc_client/cli_samr.c
+++ b/source3/rpc_client/cli_samr.c
@@ -462,54 +462,3 @@ NTSTATUS rpccli_samr_lookup_rids(struct rpc_pipe_client *cli,
return result;
}
-
-/* Set userinfo */
-
-NTSTATUS rpccli_samr_set_userinfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
- const POLICY_HND *user_pol, uint16 switch_value,
- DATA_BLOB *sess_key, SAM_USERINFO_CTR *ctr)
-{
- prs_struct qbuf, rbuf;
- SAMR_Q_SET_USERINFO q;
- SAMR_R_SET_USERINFO r;
- NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
-
- DEBUG(10,("cli_samr_set_userinfo\n"));
-
- ZERO_STRUCT(q);
- ZERO_STRUCT(r);
-
- if (!sess_key->length) {
- DEBUG(1, ("No user session key\n"));
- return NT_STATUS_NO_USER_SESSION_KEY;
- }
-
- /* Initialise parse structures */
-
- prs_init(&qbuf, RPC_MAX_PDU_FRAG_LEN, mem_ctx, MARSHALL);
- prs_init(&rbuf, 0, mem_ctx, UNMARSHALL);
-
- /* Marshall data and send request */
-
- q.ctr = ctr;
-
- init_samr_q_set_userinfo(&q, user_pol, sess_key, switch_value,
- ctr->info.id);
-
- CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_SET_USERINFO,
- q, r,
- qbuf, rbuf,
- samr_io_q_set_userinfo,
- samr_io_r_set_userinfo,
- NT_STATUS_UNSUCCESSFUL);
-
- /* Return output parameters */
-
- if (!NT_STATUS_IS_OK(result = r.status)) {
- goto done;
- }
-
- done:
-
- return result;
-}