mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s4-smbtorture: cosmetic cleanup for RPC-SAMR-ACCESSMASK.
Guenther
This commit is contained in:
parent
c62cc96b1e
commit
2abdfab613
@ -32,8 +32,8 @@
|
|||||||
|
|
||||||
|
|
||||||
static NTSTATUS torture_samr_Close(struct torture_context *tctx,
|
static NTSTATUS torture_samr_Close(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p,
|
struct dcerpc_pipe *p,
|
||||||
struct policy_handle *h)
|
struct policy_handle *h)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
struct samr_Close cl;
|
struct samr_Close cl;
|
||||||
@ -46,8 +46,8 @@ static NTSTATUS torture_samr_Close(struct torture_context *tctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS torture_samr_Connect5(struct torture_context *tctx,
|
static NTSTATUS torture_samr_Connect5(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p,
|
struct dcerpc_pipe *p,
|
||||||
uint32_t mask, struct policy_handle *h)
|
uint32_t mask, struct policy_handle *h)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
struct samr_Connect5 r5;
|
struct samr_Connect5 r5;
|
||||||
@ -71,7 +71,7 @@ static NTSTATUS torture_samr_Connect5(struct torture_context *tctx,
|
|||||||
|
|
||||||
/* check which bits in accessmask allows us to connect to the server */
|
/* check which bits in accessmask allows us to connect to the server */
|
||||||
static bool test_samr_accessmask_Connect5(struct torture_context *tctx,
|
static bool test_samr_accessmask_Connect5(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p)
|
struct dcerpc_pipe *p)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
struct policy_handle h;
|
struct policy_handle h;
|
||||||
@ -141,7 +141,7 @@ static bool test_samr_accessmask_Connect5(struct torture_context *tctx,
|
|||||||
EnumDomains() on the policy handle returned from Connect5()
|
EnumDomains() on the policy handle returned from Connect5()
|
||||||
*/
|
*/
|
||||||
static bool test_samr_accessmask_EnumDomains(struct torture_context *tctx,
|
static bool test_samr_accessmask_EnumDomains(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p)
|
struct dcerpc_pipe *p)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
struct samr_EnumDomains ed;
|
struct samr_EnumDomains ed;
|
||||||
@ -232,9 +232,9 @@ static bool test_samr_accessmask_EnumDomains(struct torture_context *tctx,
|
|||||||
* the server
|
* the server
|
||||||
*/
|
*/
|
||||||
static bool test_samr_connect_user_acl(struct torture_context *tctx,
|
static bool test_samr_connect_user_acl(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p,
|
struct dcerpc_pipe *p,
|
||||||
struct cli_credentials *test_credentials,
|
struct cli_credentials *test_credentials,
|
||||||
const struct dom_sid *test_sid)
|
const struct dom_sid *test_sid)
|
||||||
|
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
@ -352,9 +352,9 @@ static bool test_samr_connect_user_acl(struct torture_context *tctx,
|
|||||||
* the connect should fail.
|
* the connect should fail.
|
||||||
*/
|
*/
|
||||||
static bool test_samr_connect_user_acl_enforced(struct torture_context *tctx,
|
static bool test_samr_connect_user_acl_enforced(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p,
|
struct dcerpc_pipe *p,
|
||||||
struct cli_credentials *test_credentials,
|
struct cli_credentials *test_credentials,
|
||||||
const struct dom_sid *test_sid)
|
const struct dom_sid *test_sid)
|
||||||
|
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
@ -398,7 +398,7 @@ static bool test_samr_connect_user_acl_enforced(struct torture_context *tctx,
|
|||||||
LookupDomain() on the policy handle returned from Connect5()
|
LookupDomain() on the policy handle returned from Connect5()
|
||||||
*/
|
*/
|
||||||
static bool test_samr_accessmask_LookupDomain(struct torture_context *tctx,
|
static bool test_samr_accessmask_LookupDomain(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p)
|
struct dcerpc_pipe *p)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
struct samr_LookupDomain ld;
|
struct samr_LookupDomain ld;
|
||||||
@ -485,7 +485,7 @@ static bool test_samr_accessmask_LookupDomain(struct torture_context *tctx,
|
|||||||
OpenDomain() on the policy handle returned from Connect5()
|
OpenDomain() on the policy handle returned from Connect5()
|
||||||
*/
|
*/
|
||||||
static bool test_samr_accessmask_OpenDomain(struct torture_context *tctx,
|
static bool test_samr_accessmask_OpenDomain(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p)
|
struct dcerpc_pipe *p)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
struct samr_LookupDomain ld;
|
struct samr_LookupDomain ld;
|
||||||
@ -580,7 +580,7 @@ static bool test_samr_accessmask_OpenDomain(struct torture_context *tctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool test_samr_connect(struct torture_context *tctx,
|
static bool test_samr_connect(struct torture_context *tctx,
|
||||||
struct dcerpc_pipe *p)
|
struct dcerpc_pipe *p)
|
||||||
{
|
{
|
||||||
void *testuser;
|
void *testuser;
|
||||||
const char *testuser_passwd;
|
const char *testuser_passwd;
|
||||||
@ -667,11 +667,11 @@ static bool test_samr_connect(struct torture_context *tctx,
|
|||||||
|
|
||||||
struct torture_suite *torture_rpc_samr_accessmask(TALLOC_CTX *mem_ctx)
|
struct torture_suite *torture_rpc_samr_accessmask(TALLOC_CTX *mem_ctx)
|
||||||
{
|
{
|
||||||
struct torture_suite *suite = torture_suite_create(mem_ctx, "SAMR_ACCESSMASK");
|
struct torture_suite *suite = torture_suite_create(mem_ctx, "SAMR-ACCESSMASK");
|
||||||
struct torture_rpc_tcase *tcase;
|
struct torture_rpc_tcase *tcase;
|
||||||
|
|
||||||
tcase = torture_suite_add_rpc_iface_tcase(suite, "samr",
|
tcase = torture_suite_add_rpc_iface_tcase(suite, "samr",
|
||||||
&ndr_table_samr);
|
&ndr_table_samr);
|
||||||
|
|
||||||
torture_rpc_tcase_add_test(tcase, "CONNECT", test_samr_connect);
|
torture_rpc_tcase_add_test(tcase, "CONNECT", test_samr_connect);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user