diff options
author | Christof Schmitt <christof.schmitt@us.ibm.com> | 2012-08-10 08:10:42 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-15 11:44:42 +1000 |
commit | bd23c8f1ce1caf61a0596c47795d6a21c2234826 (patch) | |
tree | bfb7fdbe1e24d4390bc3a56fb2923e1f2f3d7dad /source3/winbindd/winbindd_dual_srv.c | |
parent | 7baa7091b741813f53954380a6ff6e7ff12e601b (diff) | |
download | samba-bd23c8f1ce1caf61a0596c47795d6a21c2234826.tar.gz samba-bd23c8f1ce1caf61a0596c47795d6a21c2234826.tar.bz2 samba-bd23c8f1ce1caf61a0596c47795d6a21c2234826.zip |
s3-winbind: Return the DC name from DC_PING
The DC that was attempted to ping is useful for troubleshooting. Return
the DC name in the response to the wbclient.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_dual_srv.c')
-rw-r--r-- | source3/winbindd/winbindd_dual_srv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index e9a964b70b..d39454399e 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -714,6 +714,11 @@ NTSTATUS _wbint_PingDc(struct pipes_struct *p, struct wbint_PingDc *r) b = netlogon_pipe->binding_handle; fstr_sprintf(logon_server, "\\\\%s", domain->dcname); + *r->out.dcname = talloc_strdup(p->mem_ctx, domain->dcname); + if (r->out.dcname == NULL) { + DEBUG(2, ("Could not allocate memory\n")); + return NT_STATUS_NO_MEMORY; + } /* * This provokes a WERR_NOT_SUPPORTED error message. This is |