summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/libnet/domain.c')
-rw-r--r--source4/torture/libnet/domain.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source4/torture/libnet/domain.c b/source4/torture/libnet/domain.c
index 02cdc8a0db..7e8a2d0b3a 100644
--- a/source4/torture/libnet/domain.c
+++ b/source4/torture/libnet/domain.c
@@ -1,19 +1,19 @@
-/*
+/*
Unix SMB/CIFS implementation.
Test suite for libnet calls.
Copyright (C) Rafal Szczesniak 2005
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -30,9 +30,9 @@ static bool test_domainopen(struct libnet_context *net_ctx, TALLOC_CTX *mem_ctx,
{
NTSTATUS status;
struct libnet_DomainOpen io;
-
+
printf("opening domain\n");
-
+
io.in.domain_name = talloc_strdup(mem_ctx, domname->string);
io.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
@@ -56,15 +56,15 @@ static bool test_cleanup(struct dcerpc_binding_handle *b, TALLOC_CTX *mem_ctx,
r.in.handle = domain_handle;
r.out.handle = &handle;
-
+
printf("closing domain handle\n");
-
+
status = dcerpc_samr_Close_r(b, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
printf("Close failed - %s\n", nt_errstr(status));
return false;
}
-
+
return true;
}
@@ -82,10 +82,10 @@ bool torture_domainopen(struct torture_context *torture)
net_ctx = libnet_context_init(torture->ev, torture->lp_ctx);
- status = torture_rpc_connection(torture,
+ status = torture_rpc_connection(torture,
&net_ctx->samr.pipe,
&ndr_table_samr);
-
+
if (!NT_STATUS_IS_OK(status)) {
return false;
}