The Samba-Bugzilla – Attachment 1451 Details for
Bug 3095
winbindd gives NT_STATUS_INVALID_HANDLE after unsuccessfull auth
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch I've applied to 3.0
look (text/plain), 1.65 KB, created by
Jeremy Allison
on 2005-09-16 09:18:12 UTC
(
hide
)
Description:
Patch I've applied to 3.0
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2005-09-16 09:18:12 UTC
Size:
1.65 KB
patch
obsolete
>Index: nsswitch/winbindd_pam.c >=================================================================== >--- nsswitch/winbindd_pam.c (revision 10266) >+++ nsswitch/winbindd_pam.c (working copy) >@@ -404,12 +404,15 @@ > > } 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", >- pipe_cli->cli->srv_name_slash)); >- result = NT_STATUS_ACCESS_DENIED; >+ /* Only check creds if we got a connection. */ >+ if (contact_domain->conn.cli && >+ !(NT_STATUS_EQUAL(result, NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND) || >+ NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL))) { >+ if (!clnt_deal_with_creds(session_key, credentials, &ret_creds)) { >+ DEBUG(3, ("DC %s sent wrong credentials\n", >+ pipe_cli->cli->srv_name_slash)); >+ result = NT_STATUS_ACCESS_DENIED; >+ } > } > > if (NT_STATUS_IS_OK(result)) { >@@ -709,12 +712,15 @@ > > } 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", >- pipe_cli->cli->srv_name_slash)); >- result = NT_STATUS_ACCESS_DENIED; >+ /* Only check creds if we got a connection. */ >+ if (contact_domain->conn.cli && >+ !(NT_STATUS_EQUAL(result, NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND) || >+ (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL)))) { >+ if (!clnt_deal_with_creds(session_key, credentials, &ret_creds)) { >+ DEBUG(3, ("DC %s sent wrong credentials\n", >+ pipe_cli->cli->srv_name_slash)); >+ result = NT_STATUS_ACCESS_DENIED; >+ } > } > > if (NT_STATUS_IS_OK(result)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3095
:
1443
|
1444
|
1446
|
1447
| 1451