summaryrefslogtreecommitdiff
path: root/source3/utils/net_domain.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-01 11:12:05 +0100
committerGünther Deschner <gd@samba.org>2008-02-01 12:29:10 +0100
commit42960f817a9fd439557d1be2f3ca3603a35489ce (patch)
treeb6fc07166cf2825ab8460c33fd3ce697d530b174 /source3/utils/net_domain.c
parent68900ea10170cbb0692276294f921c6aff7118b0 (diff)
downloadsamba-42960f817a9fd439557d1be2f3ca3603a35489ce.tar.gz
samba-42960f817a9fd439557d1be2f3ca3603a35489ce.tar.bz2
samba-42960f817a9fd439557d1be2f3ca3603a35489ce.zip
Use rpccli_samr_OpenDomain() all over the place.
Guenther (This used to be commit e4e9d72724d547e1405b2ed4cec509d50ec88c8d)
Diffstat (limited to 'source3/utils/net_domain.c')
-rw-r--r--source3/utils/net_domain.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/source3/utils/net_domain.c b/source3/utils/net_domain.c
index b15f61bf63..15764e47f6 100644
--- a/source3/utils/net_domain.c
+++ b/source3/utils/net_domain.c
@@ -71,9 +71,12 @@ NTSTATUS netdom_leave_domain( TALLOC_CTX *mem_ctx, struct cli_state *cli,
if ( !NT_STATUS_IS_OK(status) )
return status;
-
- status = rpccli_samr_open_domain(pipe_hnd, mem_ctx, &sam_pol,
- SEC_RIGHTS_MAXIMUM_ALLOWED, dom_sid, &domain_pol);
+
+ status = rpccli_samr_OpenDomain(pipe_hnd, mem_ctx,
+ &sam_pol,
+ SEC_RIGHTS_MAXIMUM_ALLOWED,
+ dom_sid,
+ &domain_pol);
if ( !NT_STATUS_IS_OK(status) )
return status;
@@ -232,9 +235,12 @@ NTSTATUS netdom_join_domain( TALLOC_CTX *mem_ctx, struct cli_state *cli,
if ( !NT_STATUS_IS_OK(status) )
return status;
-
- status = rpccli_samr_open_domain(pipe_hnd, mem_ctx, &sam_pol,
- SEC_RIGHTS_MAXIMUM_ALLOWED, dom_sid, &domain_pol);
+
+ status = rpccli_samr_OpenDomain(pipe_hnd, mem_ctx,
+ &sam_pol,
+ SEC_RIGHTS_MAXIMUM_ALLOWED,
+ dom_sid,
+ &domain_pol);
if ( !NT_STATUS_IS_OK(status) )
return status;