Use rpccli_samr_OpenDomain() all over the place.
[tprouty/samba.git] / source / utils / net_rpc_join.c
index de8661b0df18d300368cbc0531f6097a8a42db06..41ee4f2c365ce8cee2d43e7b1a7782c55ee450c4 100644 (file)
@@ -236,10 +236,12 @@ int net_rpc_join_newstyle(int argc, const char **argv)
                                       &sam_pol),
                      "could not connect to SAM database");
 
-       
-       CHECK_RPC_ERR(rpccli_samr_open_domain(pipe_hnd, mem_ctx, &sam_pol,
-                                          SEC_RIGHTS_MAXIMUM_ALLOWED,
-                                          domain_sid, &domain_pol),
+
+       CHECK_RPC_ERR(rpccli_samr_OpenDomain(pipe_hnd, mem_ctx,
+                                            &sam_pol,
+                                            SEC_RIGHTS_MAXIMUM_ALLOWED,
+                                            domain_sid,
+                                            &domain_pol),
                      "could not open domain");
 
        /* Create domain user */