In the local path of NetJoinDomain, try to get error string from libnetjoin.
authorGünther Deschner <gd@samba.org>
Mon, 7 Jan 2008 19:08:45 +0000 (20:08 +0100)
committerGü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

index ceb7ca10d92e930b374f04f373cde56727505b19..aa8ec6e0b5f33dd15a034c25dd7a85e463477239 100644 (file)
@@ -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;