Remove unused marshalling for LSA_OPENACCOUNT.
authorGünther Deschner <gd@samba.org>
Wed, 6 Feb 2008 18:34:40 +0000 (19:34 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 8 Feb 2008 21:44:42 +0000 (22:44 +0100)
Guenther
(This used to be commit bb8e77eb74c9d178a6c77f2f9c69eb1778fb5e10)

source3/include/rpc_lsa.h
source3/rpc_client/cli_lsarpc.c
source3/rpc_parse/parse_lsa.c

index 902d1e20b236bb3134931346662cc10b0451150e..ba1e5a3d57f7a04e692499dad47d7fb7aa9d26c1 100644 (file)
@@ -689,19 +689,6 @@ typedef struct lsa_r_unk_get_connuser
 } LSA_R_UNK_GET_CONNUSER;
 
 
-typedef struct lsa_q_openaccount
-{
-       POLICY_HND pol; /* policy handle */
-       DOM_SID2 sid;
-       uint32 access; /* desired access */
-} LSA_Q_OPENACCOUNT;
-
-typedef struct lsa_r_openaccount
-{
-       POLICY_HND pol; /* policy handle */
-       NTSTATUS status;
-} LSA_R_OPENACCOUNT;
-
 typedef struct lsa_q_enumprivsaccount
 {
        POLICY_HND pol; /* policy handle */
index 514b8f5dfdb6b50f2e3b524604b68830df522993..150d55d1c39a71ce3cdaef919e3ac9e4ee8069cc 100644 (file)
@@ -721,44 +721,6 @@ NTSTATUS rpccli_lsa_enum_sids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return result;
 }
 
-/** Open a LSA user handle
- *
- * @param cli Handle on an initialised SMB connection */
-
-NTSTATUS rpccli_lsa_open_account(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
-                             POLICY_HND *dom_pol, DOM_SID *sid, uint32 des_access,
-                            POLICY_HND *user_pol)
-{
-       prs_struct qbuf, rbuf;
-       LSA_Q_OPENACCOUNT q;
-       LSA_R_OPENACCOUNT r;
-       NTSTATUS result;
-
-       ZERO_STRUCT(q);
-       ZERO_STRUCT(r);
-
-       /* Initialise input parameters */
-
-       init_lsa_q_open_account(&q, dom_pol, sid, des_access);
-
-       CLI_DO_RPC( cli, mem_ctx, PI_LSARPC, LSA_OPENACCOUNT,
-               q, r,
-               qbuf, rbuf,
-               lsa_io_q_open_account,
-               lsa_io_r_open_account,
-               NT_STATUS_UNSUCCESSFUL);
-
-       /* Return output parameters */
-
-       result = r.status;
-
-       if (NT_STATUS_IS_OK(result)) {
-               *user_pol = r.pol;
-       }
-
-       return result;
-}
-
 /** Enumerate user privileges
  *
  * @param cli Handle on an initialised SMB connection */
index ef54b4a30db30940946a972318cfbc51c003fe56..4c13c58125fe9806557d888b5e04ddb4ad26bfbb 100644 (file)
@@ -1985,60 +1985,6 @@ bool lsa_io_r_unk_get_connuser(const char *desc, LSA_R_UNK_GET_CONNUSER *out, pr
        return True;
 }
 
-void init_lsa_q_open_account(LSA_Q_OPENACCOUNT *trn, POLICY_HND *hnd, DOM_SID *sid, uint32 desired_access)
-{
-       memcpy(&trn->pol, hnd, sizeof(trn->pol));
-
-       init_dom_sid2(&trn->sid, sid);
-       trn->access = desired_access;
-}
-
-/*******************************************************************
- Reads or writes an LSA_Q_OPENACCOUNT structure.
-********************************************************************/
-
-bool lsa_io_q_open_account(const char *desc, LSA_Q_OPENACCOUNT *out, prs_struct *ps, int depth)
-{
-       prs_debug(ps, depth, desc, "lsa_io_q_open_account");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-       if(!smb_io_pol_hnd("pol", &out->pol, ps, depth))
-               return False;
-
-       if(!smb_io_dom_sid2("sid", &out->sid, ps, depth)) /* domain SID */
-               return False;
-
-       if(!prs_uint32("access", ps, depth, &out->access))
-               return False;
-  
-       return True;
-}
-
-/*******************************************************************
- Reads or writes an LSA_R_OPENACCOUNT structure.
-********************************************************************/
-
-bool lsa_io_r_open_account(const char *desc, LSA_R_OPENACCOUNT  *out, prs_struct *ps, int depth)
-{
-       prs_debug(ps, depth, desc, "lsa_io_r_open_account");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-       if(!smb_io_pol_hnd("pol", &out->pol, ps, depth))
-               return False;
-
-       if(!prs_ntstatus("status", ps, depth, &out->status))
-               return False;
-
-       return True;
-}
-
-
 void init_lsa_q_enum_privsaccount(LSA_Q_ENUMPRIVSACCOUNT *trn, POLICY_HND *hnd)
 {
        memcpy(&trn->pol, hnd, sizeof(trn->pol));