summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-04-13 05:07:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:31 -0500
commitf06e39e30866207162656801210d2f574166d4df (patch)
treec4e53864d0f2fcedbfc75aa0d8d1faa1f4e667e5 /source4/torture/rpc
parentb6fd09d80504d55be98b167cd12b5507573d32db (diff)
downloadsamba-f06e39e30866207162656801210d2f574166d4df.tar.gz
samba-f06e39e30866207162656801210d2f574166d4df.tar.bz2
samba-f06e39e30866207162656801210d2f574166d4df.zip
r6321: added IDL and test suite for NBT dgram 'sam logon' request (sent by
clients when a user tries to login) (This used to be commit 08ded62156b387457bc56b5910e1ddc813b375bd)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/testjoin.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index 5e4c5a32f3..270d8ff7b7 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -32,6 +32,7 @@
struct test_join {
struct dcerpc_pipe *p;
struct policy_handle user_handle;
+ const char *dom_sid;
};
@@ -156,6 +157,8 @@ struct test_join *torture_create_testuser(const char *username,
goto failed;
}
+ join->dom_sid = dom_sid_string(join, l.out.sid);
+
o.in.connect_handle = &handle;
o.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
o.in.sid = l.out.sid;
@@ -309,6 +312,14 @@ void torture_leave_domain(struct test_join *join)
talloc_free(join);
}
+/*
+ return the dom sid for a test join
+*/
+const char *torture_join_sid(struct test_join *join)
+{
+ return join->dom_sid;
+}
+
struct test_join_ads_dc {
struct test_join *join;