mirror of
https://github.com/samba-team/samba.git
synced 2025-12-07 20:23:50 +03:00
converted another bunch of stuff to NTSTATUS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user