From 2b4c803ece765f4b8d3447feb55ea8bbf0b6411d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 6 Mar 2017 14:32:18 +0100 Subject: wbinfo: Add "authoritative" to wbinfo -a output BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976 Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- nsswitch/wbinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nsswitch/wbinfo.c') diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index 80b245a7f5c..57f2b3be336 100644 --- a/nsswitch/wbinfo.c +++ b/nsswitch/wbinfo.c @@ -1823,13 +1823,15 @@ static bool wbinfo_auth_crap(char *username, bool use_ntlmv2, bool use_lanman) if (wbc_status == WBC_ERR_AUTH_ERROR) { d_fprintf(stderr, - "wbcAuthenticateUserEx(%s%c%s): error code was %s (0x%x)\n" + "wbcAuthenticateUserEx(%s%c%s): error code was " + "%s (0x%x, authoritative=%"PRIu8")\n" "error message was: %s\n", name_domain, winbind_separator(), name_user, err->nt_string, err->nt_status, + err->authoritative, err->display_string); wbcFreeMemory(err); } else if (WBC_ERROR_IS_OK(wbc_status)) { -- cgit v1.2.1