r4610: You can't join as a BDC and test against trusted domains. This test
authorAndrew Bartlett <abartlet@samba.org>
Sun, 9 Jan 2005 03:04:45 +0000 (03:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:33 +0000 (13:08 -0500)
only needs WS privilages anyway.

Andrew Bartlett
(This used to be commit a093c4f98e833198ee59064b2cb9b9b45a188a59)

source4/torture/rpc/samlogon.c

index 7e5579b213d6c5d432a5edbb51d1b3c6b33fd69e..d75165ac43926dcbf7983f7448fe1f42fb817c09 100644 (file)
@@ -1226,7 +1226,10 @@ BOOL torture_rpc_samlogon(void)
 
        mem_ctx = talloc_init("torture_rpc_netlogon");
 
-       join_ctx = torture_join_domain(TEST_MACHINE_NAME, lp_workgroup(), ACB_SVRTRUST, 
+       /* We only need to join as a workstation here, and in future,
+        * if we wish to test against trusted domains, we must be a
+        * workstation here */
+       join_ctx = torture_join_domain(TEST_MACHINE_NAME, lp_workgroup(), ACB_WSTRUST, 
                                       &machine_password);
        if (!join_ctx) {
                printf("Failed to join as BDC\n");