]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Add debug statement in auth_winbind to display wbcAuthenticateUserEx error code.
authorGünther Deschner <gd@samba.org>
Wed, 26 Mar 2008 00:25:57 +0000 (01:25 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 26 Mar 2008 00:29:56 +0000 (01:29 +0100)
Guenther

source/auth/auth_winbind.c

index 26a1b7f10103f7f9960b749f1161ce411e2d9dab..20faa95b01d45f3642020b590027aac7baf0624f 100644 (file)
@@ -80,6 +80,11 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
        wbc_status = wbcAuthenticateUserEx(&params, &info, &err);
        unbecome_root();
 
+       if (!WBC_ERROR_IS_OK(wbc_status)) {
+               DEBUG(10,("check_winbind_security: wbcAuthenticateUserEx failed: %s\n",
+                       wbcErrorString(wbc_status)));
+       }
+
        if (wbc_status == WBC_ERR_NO_MEMORY) {
                return NT_STATUS_NO_MEMORY;
        }