summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-21 10:05:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:33 -0500
commit6bc971d8b5fbdaaaed1c4756424395ce8fc1e42b (patch)
treecac2fd39d7c12d580c205d023ea620cb5658c85a /source4
parentc2f94222e9625593e026d21ff314039cc776c592 (diff)
downloadsamba-6bc971d8b5fbdaaaed1c4756424395ce8fc1e42b.tar.gz
samba-6bc971d8b5fbdaaaed1c4756424395ce8fc1e42b.tar.bz2
samba-6bc971d8b5fbdaaaed1c4756424395ce8fc1e42b.zip
r4310: fixed the authority_name field in lsa_GetUserName()
(This used to be commit f78506697ad23456fcac6e8916d0dad05b0df6cc)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/idl/lsa.idl2
-rw-r--r--source4/torture/rpc/lsa.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl
index ec694df1bf..c36fce9dae 100644
--- a/source4/librpc/idl/lsa.idl
+++ b/source4/librpc/idl/lsa.idl
@@ -658,7 +658,7 @@
NTSTATUS lsa_GetUserName(
[in] unistr *system_name,
[in,out] lsa_String *account_name,
- [in,out] lsa_StringPointer *unknown_name
+ [in,out] lsa_StringPointer *authority_name
);
/**********************/
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c
index 39d433a791..77e7827cf9 100644
--- a/source4/torture/rpc/lsa.c
+++ b/source4/torture/rpc/lsa.c
@@ -1145,11 +1145,14 @@ static BOOL test_GetUserName(struct dcerpc_pipe *p,
struct lsa_GetUserName r;
NTSTATUS status;
BOOL ret = True;
+ struct lsa_StringPointer lsap;
+
printf("\nTesting GetUserName\n");
r.in.system_name = "\\";
r.in.account_name = NULL;
- r.in.unknown_name = NULL;
+ r.in.authority_name = &lsap;
+ lsap.string = NULL;
status = dcerpc_lsa_GetUserName(p, mem_ctx, &r);