summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-17 21:22:06 +0200
committerGünther Deschner <gd@samba.org>2008-06-23 23:38:52 +0200
commitddf6e73b1fcbc4faae938815e7c7840d04d84150 (patch)
treeed2d4794eb2e84a4c4e2b50ac9f3bd5991c9d7cd /source3/utils
parent33000d77e4b904cf9cdfd3e3d83a3c3cc84d7f2b (diff)
downloadsamba-ddf6e73b1fcbc4faae938815e7c7840d04d84150.tar.gz
samba-ddf6e73b1fcbc4faae938815e7c7840d04d84150.tar.bz2
samba-ddf6e73b1fcbc4faae938815e7c7840d04d84150.zip
net_vampire: move pull_netr_AcctLockStr() to libnet.
Guenther (This used to be commit 8ec64a96e43d2e55e81f725fe693178ecdc65e88)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_samsync.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index d945be76f1..2ac49270a7 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -84,40 +84,6 @@ static void display_account_info(uint32_t rid,
pdb_encode_acct_ctrl(r->acct_flags, NEW_PW_FORMAT_SPACE_PADDED_LEN));
}
-static NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
- struct lsa_BinaryString *r,
- struct netr_AcctLockStr **str_p)
-{
- struct netr_AcctLockStr *str;
- enum ndr_err_code ndr_err;
- DATA_BLOB blob;
-
- if (!mem_ctx || !r || !str_p) {
- return NT_STATUS_INVALID_PARAMETER;
- }
-
- *str_p = NULL;
-
- str = TALLOC_ZERO_P(mem_ctx, struct netr_AcctLockStr);
- if (!str) {
- return NT_STATUS_NO_MEMORY;
- }
-
- blob = data_blob_const(r->array, r->length);
-
- ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, str,
- (ndr_pull_flags_fn_t)ndr_pull_netr_AcctLockStr);
- data_blob_free(&blob);
-
- if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
- return ndr_map_error2ntstatus(ndr_err);
- }
-
- *str_p = str;
-
- return NT_STATUS_OK;
-}
-
static void display_domain_info(struct netr_DELTA_DOMAIN *r)
{
time_t u_logout;