wbinfo: Add "authoritative" to wbinfo -a output
authorVolker Lendecke <vl@samba.org>
Mon, 6 Mar 2017 13:32:18 +0000 (14:32 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Mar 2017 10:57:08 +0000 (11:57 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
nsswitch/wbinfo.c

index 80b245a7f5c34464a7e0757f8d18db65055f92be..57f2b3be336a5fa53d17a3107c437d1ff295e065 100644 (file)
@@ -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)) {