1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Fix wkssvc callers.

Guenther
This commit is contained in:
Günther Deschner 2007-12-03 18:40:09 +01:00
parent 0a8759d011
commit b734cd8aab
2 changed files with 7 additions and 8 deletions

View File

@ -89,14 +89,12 @@ WERROR NetJoinDomain(const char *server_name,
server_name, domain_name,
account_ou, Account,
&encrypted_password,
join_flags);
join_flags, &werr);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;
}
werr = WERR_OK;
done:
if (cli) {
cli_set_timeout(cli, old_timeout);
@ -166,14 +164,13 @@ WERROR NetUnjoinDomain(const char *server_name,
server_name,
account,
&encrypted_password,
unjoin_flags);
unjoin_flags,
&werr);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;
}
werr = WERR_OK;
done:
if (cli) {
cli_set_timeout(cli, old_timeout);

View File

@ -27,6 +27,7 @@ static WERROR cmd_wkssvc_wkstagetinfo(struct rpc_pipe_client *cli,
const char **argv)
{
NTSTATUS status;
WERROR werr;
uint32_t level = 100;
union wkssvc_NetWkstaInfo info;
const char *server_name;
@ -36,12 +37,13 @@ static WERROR cmd_wkssvc_wkstagetinfo(struct rpc_pipe_client *cli,
status = rpccli_wkssvc_NetWkstaGetInfo(cli, mem_ctx,
server_name,
level,
&info);
&info,
&werr);
if (!NT_STATUS_IS_OK(status)) {
return ntstatus_to_werror(status);
}
return WERR_OK;
return werr;
}
struct cmd_set wkssvc_commands[] = {