s3: Return the correct result from winbindd_dual_auth_passdb
authorVolker Lendecke <vl@samba.org>
Sat, 27 Nov 2010 17:56:41 +0000 (18:56 +0100)
committerVolker Lendecke <vlendec@samba.org>
Sat, 27 Nov 2010 18:11:03 +0000 (19:11 +0100)
source3/winbindd/winbindd_pam.c

index 0053b7fba5599541cce968370d359743ac46a08f..d52d4e27031791f0b9d3927dd29af0dc05fa5e57 100644 (file)
@@ -1118,8 +1118,9 @@ static NTSTATUS winbindd_dual_auth_passdb(TALLOC_CTX *mem_ctx,
        status = check_sam_security_info3(challenge, talloc_tos(), user_info,
                                          pinfo3);
        free_user_info(&user_info);
-       DEBUG(10, ("Authenticated user %s\\%s successfully\n", domain, user));
-       return NT_STATUS_OK;
+       DEBUG(10, ("Authenticaticating user %s\\%s returned %s\n", domain,
+                  user, nt_errstr(status)));
+       return status;
 }
 
 typedef        NTSTATUS (*netlogon_fn_t)(struct rpc_pipe_client *cli,