Index: nsswitch/winbindd_pam.c =================================================================== --- nsswitch/winbindd_pam.c (Revision 10236) +++ nsswitch/winbindd_pam.c (Arbeitskopie) @@ -404,10 +404,9 @@ } while ( (attempts < 2) && retry ); - if (NT_STATUS_IS_OK(result) && - (!clnt_deal_with_creds(session_key, credentials, - &ret_creds))) { - DEBUG(3, ("DC %s sent wrong credentials\n", + if (!clnt_deal_with_creds(session_key, credentials, + &ret_creds)) { + DEBUG(3, ("DC %s sent wrong crecentials\n", pipe_cli->cli->srv_name_slash)); result = NT_STATUS_ACCESS_DENIED; } @@ -709,10 +708,9 @@ } while ( (attempts < 2) && retry ); - if (NT_STATUS_IS_OK(result) && - (!clnt_deal_with_creds(session_key, credentials, - &ret_creds))) { - DEBUG(3, ("DC %s sent wrong credentials\n", + if (!clnt_deal_with_creds(session_key, credentials, + &ret_creds)) { + DEBUG(3, ("DC %s sent wrong crecentials\n", pipe_cli->cli->srv_name_slash)); result = NT_STATUS_ACCESS_DENIED; }