Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
[kai/samba.git] / source3 / utils / net_rpc_join.c
index 1587793bdc0f7028d6125e9b5da8c6d43abc5d4d..78bbce3dfc02830ed2184df799d2bf09ccc1e6e7 100644 (file)
@@ -245,7 +245,7 @@ int net_rpc_join_newstyle(struct net_context *c, int argc, const char **argv)
        CHECK_RPC_ERR(rpccli_samr_Connect2(pipe_hnd, mem_ctx,
                                           pipe_hnd->desthost,
                                           SAMR_ACCESS_ENUM_DOMAINS
-                                          | SAMR_ACCESS_OPEN_DOMAIN,
+                                          | SAMR_ACCESS_LOOKUP_DOMAIN,
                                           &sam_pol),
                      "could not connect to SAM database");