wbinfo: Improve output of wbinfo --ping-dc
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Fri, 10 Aug 2012 15:41:41 +0000 (08:41 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2012 01:44:43 +0000 (11:44 +1000)
commit4c8616f0c84bfd1b114df8bb158c06ca8d987d5a
tree2a2d6639d6af76a29f2575279b1e0f66678013b0
parentbdb1f23e1d082830bf887cad0a0b5fed946b8e32
wbinfo: Improve output of wbinfo --ping-dc

Use wbcPingDc2 to get the DC name and print it.

Cleanup error messages: Remove "Could not ping our DC", there is always
a more specific message.  Avoid printing "failed to call wbcPingDc" in
case the ping has been attempted and it returns an error, the error is
already printed.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
nsswitch/wbinfo.c