diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-27 23:39:57 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-28 00:19:30 +1000 |
commit | 91bb4893c486275602242b67c810f02adb7ce9ba (patch) | |
tree | f8b336a64dba9398315e1f8303e0ad67c043689b /source4/torture | |
parent | 7f25723cf504b3cdc0db68ff4125539baa486975 (diff) | |
download | samba-91bb4893c486275602242b67c810f02adb7ce9ba.tar.gz samba-91bb4893c486275602242b67c810f02adb7ce9ba.tar.bz2 samba-91bb4893c486275602242b67c810f02adb7ce9ba.zip |
s4-netlogon: fixed getDcNameEx2 for blank inputs
w2k8r2 returns the local DC information on no inputs for
getDcNameEx2. This is needed for starting dsa.msc (ADUC) on
Win7.
CDLAP on the same call returns an error. This uses a parameter
fill_on_blank_request to distinguish the two cases.
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/netlogon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 1fc902b59e..d6bc013e8a 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -2271,6 +2271,15 @@ static bool test_netr_DsRGetDCNameEx2(struct torture_context *tctx, struct netr_DsRGetDCNameInfo *info = NULL; struct dcerpc_binding_handle *b = p->binding_handle; + torture_comment(tctx, "Testing netr_DsRGetDCNameEx2 with no inputs\n"); + ZERO_STRUCT(r.in); + r.in.flags = DS_RETURN_DNS_NAME; + r.out.info = &info; + + status = dcerpc_netr_DsRGetDCNameEx2_r(b, tctx, &r); + torture_assert_ntstatus_ok(tctx, status, "netr_DsRGetDCNameEx2"); + torture_assert_werr_ok(tctx, r.out.result, "netr_DsRGetDCNameEx2"); + r.in.server_unc = talloc_asprintf(tctx, "\\\\%s", dcerpc_server_name(p)); r.in.client_account = NULL; r.in.mask = 0x00000000; |