1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3-libnet: Print error string even on successfuly completion of libnetjoin.

Sometimes useful information should be printed to the users.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11977

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Günther Deschner 2016-06-15 16:04:29 +02:00
parent 169e8aeda5
commit 632faa8761
2 changed files with 15 additions and 0 deletions

View File

@ -1599,6 +1599,11 @@ int net_ads_join(struct net_context *c, int argc, const char **argv)
r->out.netbios_domain_name);
}
/* print out informative error string in case there is one */
if (r->out.error_string != NULL) {
d_printf("%s\n", r->out.error_string);
}
/*
* We try doing the dns update (if it was compiled in
* and if it was not disabled on the command line).

View File

@ -428,6 +428,11 @@ static int net_rpc_oldjoin(struct net_context *c, int argc, const char **argv)
r->out.netbios_domain_name);
}
/* print out informative error string in case there is one */
if (r->out.error_string != NULL) {
d_printf("%s\n", r->out.error_string);
}
TALLOC_FREE(mem_ctx);
return 0;
@ -607,6 +612,11 @@ static int net_rpc_join_newstyle(struct net_context *c, int argc, const char **a
r->out.netbios_domain_name);
}
/* print out informative error string in case there is one */
if (r->out.error_string != NULL) {
d_printf("%s\n", r->out.error_string);
}
TALLOC_FREE(mem_ctx);
return 0;