diff options
author | Günther Deschner <gd@samba.org> | 2008-02-12 18:21:52 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-12 18:21:52 +0100 |
commit | b1c6104fa4c7a4e7e5cbbcdfef7c75baebde762d (patch) | |
tree | 748ceb512dc323bfa29f440b584a896136018406 /source3/utils | |
parent | 4c42f7999a876db0ec7e93f60354ef51290ad11e (diff) | |
download | samba-b1c6104fa4c7a4e7e5cbbcdfef7c75baebde762d.tar.gz samba-b1c6104fa4c7a4e7e5cbbcdfef7c75baebde762d.tar.bz2 samba-b1c6104fa4c7a4e7e5cbbcdfef7c75baebde762d.zip |
Use every
(This used to be commit d9cec295bf55b3a7e16f548cc4bf64ce474b41e9)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_domain.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/utils/net_domain.c b/source3/utils/net_domain.c index c545fd9160..820b3ae792 100644 --- a/source3/utils/net_domain.c +++ b/source3/utils/net_domain.c @@ -57,11 +57,12 @@ NTSTATUS netdom_leave_domain( TALLOC_CTX *mem_ctx, struct cli_state *cli, NTSTATUS status = NT_STATUS_UNSUCCESSFUL; char *acct_name; uint32 user_rid; - SAM_USERINFO_CTR ctr, *qctr = NULL; + SAM_USERINFO_CTR ctr; SAM_USER_INFO_16 p16; struct lsa_String lsa_acct_name; struct samr_Ids user_rids; struct samr_Ids name_types; + union samr_UserInfo *info = NULL; /* Open the domain */ @@ -123,7 +124,10 @@ NTSTATUS netdom_leave_domain( TALLOC_CTX *mem_ctx, struct cli_state *cli, /* Get user info */ - status = rpccli_samr_query_userinfo(pipe_hnd, mem_ctx, &user_pol, 16, &qctr); + status = rpccli_samr_QueryUserInfo(pipe_hnd, mem_ctx, + &user_pol, + 16, + &info); if ( !NT_STATUS_IS_OK(status) ) { rpccli_samr_Close(pipe_hnd, mem_ctx, &user_pol); goto done; @@ -135,7 +139,7 @@ NTSTATUS netdom_leave_domain( TALLOC_CTX *mem_ctx, struct cli_state *cli, ctr.switch_value = 16; ctr.info.id16 = &p16; - p16.acb_info = qctr->info.id16->acb_info | ACB_DISABLED; + p16.acb_info = info->info16.acct_flags | ACB_DISABLED; status = rpccli_samr_set_userinfo2(pipe_hnd, mem_ctx, &user_pol, 16, &cli->user_session_key, &ctr); |