diff options
author | Günther Deschner <gd@samba.org> | 2009-04-14 23:30:13 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-04-28 09:10:58 +0200 |
commit | c9dfce75b2dbd13e9c8aa140c51803b7f3ca6a49 (patch) | |
tree | 3891135e76e347fe13f378ce5c1e267b1c101f1e | |
parent | afcc2d0962a6f2a867d9022b30635707af3bafce (diff) | |
download | samba-c9dfce75b2dbd13e9c8aa140c51803b7f3ca6a49.tar.gz |
s4-smbtorture: define TORTURE_DEFAULT_SERVICE and set to netlogon.
Guenther
(cherry picked from commit f1fd39c09f0e094c882775367b1e4c5772d7ee51)
(cherry picked from commit 9c914cf1bd4ce2d7abba6a4e94e393cb930f259e)
-rw-r--r-- | source4/torture/rpc/svcctl.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source4/torture/rpc/svcctl.c b/source4/torture/rpc/svcctl.c index 631e367c3bc..a2e32f221fe 100644 --- a/source4/torture/rpc/svcctl.c +++ b/source4/torture/rpc/svcctl.c @@ -26,6 +26,8 @@ #include "torture/rpc/rpc.h" #include "param/param.h" +#define TORTURE_DEFAULT_SERVICE "NetLogon" + static bool test_OpenSCManager(struct dcerpc_pipe *p, struct torture_context *tctx, struct policy_handle *h) { struct svcctl_OpenSCManagerW r; @@ -85,7 +87,7 @@ static bool test_QueryServiceStatus(struct torture_context *tctx, if (!test_OpenSCManager(p, tctx, &h)) return false; - if (!test_OpenService(p, tctx, &h, "Netlogon", &s)) + if (!test_OpenService(p, tctx, &h, TORTURE_DEFAULT_SERVICE, &s)) return false; r.in.handle = &s; @@ -118,7 +120,7 @@ static bool test_QueryServiceStatusEx(struct torture_context *tctx, struct dcerp if (!test_OpenSCManager(p, tctx, &h)) return false; - if (!test_OpenService(p, tctx, &h, "Netlogon", &s)) + if (!test_OpenService(p, tctx, &h, TORTURE_DEFAULT_SERVICE, &s)) return false; buffer = talloc(tctx, uint8_t); @@ -165,7 +167,7 @@ static bool test_QueryServiceConfigW(struct torture_context *tctx, if (!test_OpenSCManager(p, tctx, &h)) return false; - if (!test_OpenService(p, tctx, &h, "Netlogon", &s)) + if (!test_OpenService(p, tctx, &h, TORTURE_DEFAULT_SERVICE, &s)) return false; r.in.handle = &s; @@ -207,7 +209,7 @@ static bool test_QueryServiceConfig2W(struct torture_context *tctx, struct dcerp if (!test_OpenSCManager(p, tctx, &h)) return false; - if (!test_OpenService(p, tctx, &h, "Netlogon", &s)) + if (!test_OpenService(p, tctx, &h, TORTURE_DEFAULT_SERVICE, &s)) return false; buffer = talloc(tctx, uint8_t); @@ -270,7 +272,7 @@ static bool test_QueryServiceObjectSecurity(struct torture_context *tctx, if (!test_OpenSCManager(p, tctx, &h)) return false; - if (!test_OpenService(p, tctx, &h, "Netlogon", &s)) + if (!test_OpenService(p, tctx, &h, TORTURE_DEFAULT_SERVICE, &s)) return false; r.in.handle = &s; @@ -403,7 +405,7 @@ static bool test_EnumDependentServicesW(struct torture_context *tctx, if (!test_OpenSCManager(p, tctx, &h)) return false; - if (!test_OpenService(p, tctx, &h, "Netlogon", &s)) + if (!test_OpenService(p, tctx, &h, TORTURE_DEFAULT_SERVICE, &s)) return false; r.in.service = &s; |