Author: mimir
Date: 2005-04-22 00:32:37 +0000 (Fri, 22 Apr 2005)
New Revision: 6426

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6426

Log:
DCE/RPC bind string parsing is not needed anymore, as we use
lp_workgroup parameter as domain name to operate on.


rafal


Modified:
   branches/SAMBA_4_0/source/torture/libnet/userinfo.c
   branches/SAMBA_4_0/source/torture/libnet/userman.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/libnet/userinfo.c
===================================================================
--- branches/SAMBA_4_0/source/torture/libnet/userinfo.c 2005-04-22 00:22:11 UTC 
(rev 6425)
+++ branches/SAMBA_4_0/source/torture/libnet/userinfo.c 2005-04-22 00:32:37 UTC 
(rev 6426)
@@ -225,17 +225,8 @@
                                        DCERPC_SAMR_UUID,
                                        DCERPC_SAMR_VERSION);
        
-       if (!NT_STATUS_IS_OK(status)) {
-               return False;
-       }
+       if (!NT_STATUS_IS_OK(status)) return False;
 
-       status = dcerpc_parse_binding(mem_ctx, binding, &b);
-       if (!NT_STATUS_IS_OK(status)) {
-               printf("failed to parse dcerpc binding '%s'\n", binding);
-               talloc_free(mem_ctx);
-               ret = False;
-               goto done;
-       }
        name.string = lp_workgroup();
 
        if (!test_opendomain(p, mem_ctx, &h, &name, &sid)) {

Modified: branches/SAMBA_4_0/source/torture/libnet/userman.c
===================================================================
--- branches/SAMBA_4_0/source/torture/libnet/userman.c  2005-04-22 00:22:11 UTC 
(rev 6425)
+++ branches/SAMBA_4_0/source/torture/libnet/userman.c  2005-04-22 00:32:37 UTC 
(rev 6426)
@@ -23,7 +23,7 @@
 #include "librpc/gen_ndr/ndr_samr.h"
 #include "libnet/composite.h"
 
-#define TEST_USERNAME  "libnetuserinfotest"
+#define TEST_USERNAME  "libnetusermantest"
 
 
 static BOOL test_opendomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
@@ -235,18 +235,8 @@
                                        DCERPC_SAMR_UUID,
                                        DCERPC_SAMR_VERSION);
        
-       if (!NT_STATUS_IS_OK(status)) {
-               return False;
-       }
+       if (!NT_STATUS_IS_OK(status)) return False;
 
-       status = dcerpc_parse_binding(mem_ctx, binding, &b);
-       if (!NT_STATUS_IS_OK(status)) {
-               printf("failed to parse dcerpc binding '%s'\n", binding);
-               talloc_free(mem_ctx);
-               ret = False;
-               goto done;
-       }
-
        domain_name.string = lp_workgroup();
        if (!test_opendomain(p, mem_ctx, &h, &domain_name)) {
                ret = False;
@@ -290,18 +280,8 @@
                                        DCERPC_SAMR_UUID,
                                        DCERPC_SAMR_VERSION);
        
-       if (!NT_STATUS_IS_OK(status)) {
-               return False;
-       }
+       if (!NT_STATUS_IS_OK(status)) return False;
 
-       status = dcerpc_parse_binding(mem_ctx, binding, &b);
-       if (!NT_STATUS_IS_OK(status)) {
-               printf("failed to parse dcerpc binding '%s'\n", binding);
-               talloc_free(mem_ctx);
-               ret = False;
-               goto done;
-       }
-
        domain_name.string = lp_workgroup();
        if (!test_opendomain(p, mem_ctx, &h, &domain_name)) {
                ret = False;

Reply via email to