Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
[ira/wip.git] / source3 / libnet / libnet_join.c
index 8e75d36fe33b9b4b31e1fbb8669474e4c0289111..894f5cba3299fb5d3213a77979229f6a6d6be729 100644 (file)
@@ -786,7 +786,7 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
        status = rpccli_samr_Connect2(pipe_hnd, mem_ctx,
                                      pipe_hnd->desthost,
                                      SAMR_ACCESS_ENUM_DOMAINS
-                                     | SAMR_ACCESS_OPEN_DOMAIN,
+                                     | SAMR_ACCESS_LOOKUP_DOMAIN,
                                      &sam_pol);
        if (!NT_STATUS_IS_OK(status)) {
                goto done;