summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-02 00:31:54 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-02 00:31:54 +0000
commit06ae42483582ee76c3f6848697cf61cc142dd86a (patch)
tree959408cf7ba1e90e05a4e30278e71445ebc5cf32 /source4/torture/rpc/samr.c
parent8b30b0071cb7668f49b2ea5951d1180bf90371e3 (diff)
downloadsamba-06ae42483582ee76c3f6848697cf61cc142dd86a.tar.gz
samba-06ae42483582ee76c3f6848697cf61cc142dd86a.tar.bz2
samba-06ae42483582ee76c3f6848697cf61cc142dd86a.zip
* netr_ServerPasswordSet() now works - the test suite changes the
machine account password. * neater handling on value() options in IDL. The auto-print code will now display the right value so you don't need to initialise it in your C code (This used to be commit 3dd978b12bb5571fba4e1839c0f7ee60cf729aa2)
Diffstat (limited to 'source4/torture/rpc/samr.c')
-rw-r--r--source4/torture/rpc/samr.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index f7006241b5..45a0c4f02d 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -26,18 +26,9 @@
static BOOL test_QueryUserInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle);
-/*
- this makes the debug code display the right thing
-*/
static void init_samr_Name(struct samr_Name *name, const char *s)
{
- name->name_len = strlen_m(s)*2;
- name->name_size = name->name_len;
- if (name->name_len == 0) {
- name->name = NULL;
- } else {
- name->name = s;
- }
+ name->name = s;
}
static BOOL test_Close(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,