git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
751fc87
)
In the local path of NetJoinDomain, try to get error string from libnetjoin.
author
Günther Deschner
<gd@samba.org>
Mon, 7 Jan 2008 19:08:45 +0000
(20:08 +0100)
committer
Günther Deschner
<gd@samba.org>
Mon, 7 Jan 2008 19:13:26 +0000
(20:13 +0100)
Guenther
(This used to be commit
0f0f0e13022da584b77e850fec2cef6169e1ac28
)
source3/lib/netapi/joindomain.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/joindomain.c
b/source3/lib/netapi/joindomain.c
index ceb7ca10d92e930b374f04f373cde56727505b19..aa8ec6e0b5f33dd15a034c25dd7a85e463477239 100644
(file)
--- a/
source3/lib/netapi/joindomain.c
+++ b/
source3/lib/netapi/joindomain.c
@@
-78,6
+78,9
@@
static WERROR NetJoinDomainLocal(struct libnetapi_ctx *mem_ctx,
r->in.modify_config = true;
werr = libnet_Join(mem_ctx, r);
+ if (!W_ERROR_IS_OK(werr) && r->out.error_string) {
+ libnetapi_set_error_string(mem_ctx, r->out.error_string);
+ }
TALLOC_FREE(r);
return werr;