From b031af348c7dcc8c74bf49945211c466b8eca079 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 Aug 2001 19:46:22 +0000 Subject: converted another bunch of stuff to NTSTATUS (This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e) --- source3/libsmb/cli_samr.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'source3/libsmb/cli_samr.c') diff --git a/source3/libsmb/cli_samr.c b/source3/libsmb/cli_samr.c index dee1baff02..123f5c116b 100644 --- a/source3/libsmb/cli_samr.c +++ b/source3/libsmb/cli_samr.c @@ -68,7 +68,7 @@ uint32 cli_samr_connect(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) == NT_STATUS_NOPROBLEMO) { + if ((result = r.status) == NT_STATUS_OK) { *connect_pol = r.connect_pol; } @@ -114,7 +114,7 @@ uint32 cli_samr_close(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) == NT_STATUS_NOPROBLEMO) { + if ((result = r.status) == NT_STATUS_OK) { *connect_pol = r.pol; } @@ -161,7 +161,7 @@ uint32 cli_samr_open_domain(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) == NT_STATUS_NOPROBLEMO) { + if ((result = r.status) == NT_STATUS_OK) { *domain_pol = r.domain_pol; } @@ -208,7 +208,7 @@ uint32 cli_samr_open_user(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) == NT_STATUS_NOPROBLEMO) { + if ((result = r.status) == NT_STATUS_OK) { *user_pol = r.user_pol; } @@ -255,7 +255,7 @@ uint32 cli_samr_open_group(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) == NT_STATUS_NOPROBLEMO) { + if ((result = r.status) == NT_STATUS_OK) { *group_pol = r.pol; } @@ -395,7 +395,7 @@ uint32 cli_samr_query_usergroups(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) == NT_STATUS_NOPROBLEMO) { + if ((result = r.status) == NT_STATUS_OK) { *num_groups = r.num_entries; *gid = r.gid; } @@ -443,7 +443,7 @@ uint32 cli_samr_query_groupmem(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) == NT_STATUS_NOPROBLEMO) { + if ((result = r.status) == NT_STATUS_OK) { *num_mem = r.num_entries; *rid = r.rid; *attr = r.attr; @@ -495,7 +495,7 @@ uint32 cli_samr_enum_dom_groups(struct cli_state *cli, TALLOC_CTX *mem_ctx, result = r.status; - if (result != NT_STATUS_NOPROBLEMO && + if (result != NT_STATUS_OK && result != STATUS_MORE_ENTRIES) { goto done; } @@ -569,7 +569,7 @@ uint32 cli_samr_query_aliasmem(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) != NT_STATUS_NOPROBLEMO) { + if ((result = r.status) != NT_STATUS_OK) { goto done; } @@ -629,7 +629,7 @@ uint32 cli_samr_open_alias(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) == NT_STATUS_NOPROBLEMO) { + if ((result = r.status) == NT_STATUS_OK) { *alias_pol = r.pol; } @@ -678,7 +678,7 @@ uint32 cli_samr_query_dom_info(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) != NT_STATUS_NOPROBLEMO) { + if ((result = r.status) != NT_STATUS_OK) { goto done; } @@ -731,7 +731,7 @@ uint32 cli_samr_query_dispinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx, result = r.status; - if (result != NT_STATUS_NOPROBLEMO && + if (result != NT_STATUS_OK && result != STATUS_MORE_ENTRIES) { goto done; } @@ -791,7 +791,7 @@ uint32 cli_samr_lookup_rids(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) != NT_STATUS_NOPROBLEMO) { + if ((result = r.status) != NT_STATUS_OK) { goto done; } @@ -859,7 +859,7 @@ uint32 cli_samr_lookup_names(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) != NT_STATUS_NOPROBLEMO) { + if ((result = r.status) != NT_STATUS_OK) { goto done; } @@ -921,7 +921,7 @@ uint32 cli_samr_create_dom_user(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) != NT_STATUS_NOPROBLEMO) { + if ((result = r.status) != NT_STATUS_OK) { goto done; } @@ -977,7 +977,7 @@ uint32 cli_samr_set_userinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) != NT_STATUS_NOPROBLEMO) { + if ((result = r.status) != NT_STATUS_OK) { goto done; } @@ -1024,7 +1024,7 @@ uint32 cli_samr_set_userinfo2(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* Return output parameters */ - if ((result = r.status) != NT_STATUS_NOPROBLEMO) { + if ((result = r.status) != NT_STATUS_OK) { goto done; } -- cgit