s3: Add wbinfo --dc-info
authorVolker Lendecke <vl@samba.org>
Mon, 10 Jan 2011 16:25:00 +0000 (17:25 +0100)
committerVolker Lendecke <vlendec@samba.org>
Wed, 19 Jan 2011 07:40:28 +0000 (08:40 +0100)
commit7f87d58900c2adf4d79f4dc7859a96f1d00d819b
treeadd63dc353d4026745f7ffb3c4fcbf8473737e56
parent1b439960224cb97e328204cdf79654f565043679
s3: Add wbinfo --dc-info

wbinfo --dc-info prints the current DC name and IP address. This helps
diagnosing problems that might happen when a later wbinfo --ping-dc fails.

This patch started out by using the SAF and NBT cache entires, but those are
relatively short-lived. So I decided to invent a new gencache entry with a very
long timeout. We need to go via the gencache because when for some reason a
winbind child process is stuck, we can't query it for the current DC it's
connected to. This must eventually go away again when we have a fully async
winbind.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 19 08:40:28 CET 2011 on sn-devel-104
nsswitch/libwbclient/wbc_util.c
nsswitch/libwbclient/wbclient.h
nsswitch/wbinfo.c
nsswitch/winbind_struct_protocol.h
source3/winbindd/winbindd.c
source3/winbindd/winbindd_cm.c
source3/winbindd/winbindd_misc.c
source3/winbindd/winbindd_proto.h