[PATCHES] Improve output of wbinfo --ping-dc

Christof Schmitt christof.schmitt at us.ibm.com
Thu Aug 9 17:54:21 MDT 2012


The attached patches make the output of wbinfo --ping-dc more useful
for problem determination:

1) If there is an error from the ping attempt, return it to the
  client.
2) Include the name of the DC that was attempted to ping.
3) Remove redundant error messages.

With the three attached patches applied, the wbinfo output looks like
this:

# wbinfo --ping-dc
checking the NETLOGON dc connection to "ad1.EXAMPLE.COM" succeeded

# wbinfo --ping-dc
checking the NETLOGON dc connection to "ad1.EXAMPLE.COM" failed
error code was NT_STATUS_IO_TIMEOUT (0xc00000b5)

# wbinfo --ping-dc
checking the NETLOGON dc connection to "ad1.EXAMPLE.COM" failed
error code was NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND (0xc0000233)

Regards,

Christof Schmitt || IBM || SONAS System Development || Tucson, AZ
christof.schmitt at us.ibm.com  ||  +1-520-799-2469  (T/L: 321-2469)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-winbind-Pass-ping-dc-result-to-client.patch
Type: application/octet-stream
Size: 1572 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120809/dccc08ba/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-s3-winbind-Report-the-DC-during-dc-ping.patch
Type: application/octet-stream
Size: 5254 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120809/dccc08ba/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-wbinfo-Cleanup-error-messages-from-ping-dc.patch
Type: application/octet-stream
Size: 1147 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120809/dccc08ba/attachment-0002.obj>


More information about the samba-technical mailing list