dsgetdcname: return an IP address on rediscovery
authorUri Simchoni <uri@samba.org>
Thu, 3 Mar 2016 07:18:44 +0000 (09:18 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 7 Mar 2016 21:16:20 +0000 (22:16 +0100)
commitef84f4c018424b1fcc232a4780dc2c0435701d86
tree92180c4d90c6dfae437887b3e060561b509a08e5
parent980f8cfe30577f2b14dfd2ac53a785f4395d980f
dsgetdcname: return an IP address on rediscovery

When dsgetdcname return its result based on discovery
process (instead of retrieving cached value), always
return the found server's IP address in dc_address field,
rather than its netbios name.

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

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/dsgetdcname.c