mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
werror: replace WERR_UNKNOWN_LEVEL with WERR_INVALID_LEVEL in source3/lib/netapi/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
bf03690ca6
commit
a72a52fca1
@ -1697,7 +1697,7 @@ static NET_API_STATUS get_server_properties(struct join_state *state)
|
||||
}
|
||||
|
||||
switch (status) {
|
||||
case 124: /* WERR_UNKNOWN_LEVEL */
|
||||
case 124: /* WERR_INVALID_LEVEL */
|
||||
case 50: /* WERR_NOT_SUPPORTED */
|
||||
break;
|
||||
default:
|
||||
|
@ -126,7 +126,7 @@ WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx,
|
||||
case 3:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_get_binding_handle(ctx, r->in.server_name,
|
||||
@ -197,7 +197,7 @@ WERROR NetFileEnum_r(struct libnetapi_ctx *ctx,
|
||||
case 3:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_get_binding_handle(ctx, r->in.server_name,
|
||||
|
@ -71,7 +71,7 @@ WERROR NetGroupAdd_r(struct libnetapi_ctx *ctx,
|
||||
info3 = (struct GROUP_INFO_3 *)r->in.buffer;
|
||||
break;
|
||||
default:
|
||||
werr = WERR_UNKNOWN_LEVEL;
|
||||
werr = WERR_INVALID_LEVEL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -734,7 +734,7 @@ static WERROR map_group_info_to_buffer(TALLOC_CTX *mem_ctx,
|
||||
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
W_ERROR_HAVE_NO_MEMORY(*buffer);
|
||||
@ -1358,7 +1358,7 @@ static WERROR convert_samr_disp_groups_to_GROUP_INFO_buffer(TALLOC_CTX *mem_ctx,
|
||||
case 3:
|
||||
return convert_samr_disp_groups_to_GROUP_INFO_3_buffer(mem_ctx, groups, domain_sid, buffer);
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1393,7 +1393,7 @@ WERROR NetGroupEnum_r(struct libnetapi_ctx *ctx,
|
||||
case 3:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_open_pipe(ctx, r->in.server_name,
|
||||
@ -1539,7 +1539,7 @@ WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx,
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
|
||||
@ -1732,7 +1732,7 @@ WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx,
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_open_pipe(ctx, r->in.server_name,
|
||||
|
@ -180,7 +180,7 @@ WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx,
|
||||
alias_name = info1->lgrpi1_name;
|
||||
break;
|
||||
default:
|
||||
werr = WERR_UNKNOWN_LEVEL;
|
||||
werr = WERR_INVALID_LEVEL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -459,7 +459,7 @@ static WERROR map_alias_info_to_buffer(TALLOC_CTX *mem_ctx,
|
||||
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
return WERR_OK;
|
||||
@ -490,7 +490,7 @@ WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx,
|
||||
case 1002:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(connect_handle);
|
||||
@ -669,7 +669,7 @@ WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx,
|
||||
case 1002:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(connect_handle);
|
||||
@ -812,7 +812,7 @@ WERROR NetLocalGroupEnum_r(struct libnetapi_ctx *ctx,
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
if (r->out.total_entries) {
|
||||
@ -1109,7 +1109,7 @@ static WERROR NetLocalGroupModifyMembers_r(struct libnetapi_ctx *ctx,
|
||||
case 3:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
if (r->in.total_entries == 0 || !r->in.buffer) {
|
||||
|
@ -116,7 +116,7 @@ static WERROR construct_buffer(TALLOC_CTX *mem_ctx,
|
||||
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
return WERR_OK;
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ WERROR NetServerGetInfo_l(struct libnetapi_ctx *ctx,
|
||||
break;
|
||||
}
|
||||
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
@ -499,7 +499,7 @@ WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
|
||||
case 1005:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_get_binding_handle(ctx, r->in.server_name,
|
||||
@ -601,7 +601,7 @@ WERROR NetServerSetInfo_l(struct libnetapi_ctx *ctx,
|
||||
break;
|
||||
}
|
||||
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
|
@ -222,7 +222,7 @@ WERROR NetShareAdd_r(struct libnetapi_ctx *ctx,
|
||||
case 503:
|
||||
return WERR_NOT_SUPPORTED;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_get_binding_handle(ctx, r->in.server_name,
|
||||
@ -341,7 +341,7 @@ WERROR NetShareEnum_r(struct libnetapi_ctx *ctx,
|
||||
case 503:
|
||||
return WERR_NOT_SUPPORTED;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(info_ctr);
|
||||
@ -450,7 +450,7 @@ WERROR NetShareGetInfo_r(struct libnetapi_ctx *ctx,
|
||||
case 503:
|
||||
return WERR_NOT_SUPPORTED;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_get_binding_handle(ctx, r->in.server_name,
|
||||
@ -524,7 +524,7 @@ WERROR NetShareSetInfo_r(struct libnetapi_ctx *ctx,
|
||||
case 1501:
|
||||
return WERR_NOT_SUPPORTED;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_get_binding_handle(ctx, r->in.server_name,
|
||||
|
@ -1315,7 +1315,7 @@ WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
|
||||
case 23:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_open_pipe(ctx, r->in.server_name,
|
||||
@ -1588,7 +1588,7 @@ static WERROR convert_samr_dispinfo_to_NET_DISPLAY(TALLOC_CTX *mem_ctx,
|
||||
break;
|
||||
}
|
||||
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
@ -1623,7 +1623,7 @@ WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx,
|
||||
case 3:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_open_pipe(ctx, r->in.server_name,
|
||||
@ -1756,7 +1756,7 @@ WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx,
|
||||
case 23:
|
||||
break;
|
||||
default:
|
||||
werr = WERR_UNKNOWN_LEVEL;
|
||||
werr = WERR_INVALID_LEVEL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -1928,7 +1928,7 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx,
|
||||
werr = WERR_NOT_SUPPORTED;
|
||||
goto done;
|
||||
default:
|
||||
werr = WERR_UNKNOWN_LEVEL;
|
||||
werr = WERR_INVALID_LEVEL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -2387,7 +2387,7 @@ WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx,
|
||||
access_mask |= SAMR_DOMAIN_ACCESS_LOOKUP_INFO_1;
|
||||
break;
|
||||
default:
|
||||
werr = WERR_UNKNOWN_LEVEL;
|
||||
werr = WERR_INVALID_LEVEL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -2872,7 +2872,7 @@ WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx,
|
||||
werr = WERR_NOT_SUPPORTED;
|
||||
break;
|
||||
default:
|
||||
werr = WERR_UNKNOWN_LEVEL;
|
||||
werr = WERR_INVALID_LEVEL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -3008,7 +3008,7 @@ WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx,
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_open_pipe(ctx, r->in.server_name,
|
||||
@ -3199,7 +3199,7 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_open_pipe(ctx, r->in.server_name,
|
||||
@ -3540,7 +3540,7 @@ WERROR NetUserGetLocalGroups_r(struct libnetapi_ctx *ctx,
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_open_pipe(ctx, r->in.server_name,
|
||||
|
@ -118,7 +118,7 @@ WERROR NetWkstaGetInfo_r(struct libnetapi_ctx *ctx,
|
||||
case 102:
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
return WERR_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
werr = libnetapi_get_binding_handle(ctx, r->in.server_name,
|
||||
|
Loading…
Reference in New Issue
Block a user