The Samba-Bugzilla – Attachment 11584 Details for
Bug 11569
winbindd crashes with samlogon for trusted domain user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
(patch 2 of 2) cherry-pick from master to 4.3.1
0002-s3-winbind-Prevent-null-ptr-access-by-returning-erro.patch (text/plain), 1.48 KB, created by
Noel Power
on 2015-11-06 10:07:41 UTC
(
hide
)
Description:
(patch 2 of 2) cherry-pick from master to 4.3.1
Filename:
MIME Type:
Creator:
Noel Power
Created:
2015-11-06 10:07:41 UTC
Size:
1.48 KB
patch
obsolete
>From b2aa42c963a9b9712054d6eaffebe83b97e0c1b7 Mon Sep 17 00:00:00 2001 >From: Noel Power <noel.power@suse.com> >Date: Thu, 22 Oct 2015 12:37:17 +0100 >Subject: [PATCH 2/2] s3: winbind: Prevent null ptr access by returning error > if no creds available > >Prevent rpccli_netlogon_network_logon/rpccli_netlogon_password_logon >being called with 'NULL' credentials > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11569 > >Signed-off-by: Noel Power <noel.power@suse.com> >Reviewed-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Stefan Metzmacher <metze@samba.org> >(cherry picked from commit e8fab02773892812f563eea7098847618df76e1b) >--- > source3/winbindd/winbindd_pam.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c >index 329db62..521a3a1 100644 >--- a/source3/winbindd/winbindd_pam.c >+++ b/source3/winbindd/winbindd_pam.c >@@ -1379,8 +1379,11 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain, > return result; > } > netr_attempts = 0; >- >- if (interactive && username != NULL && password != NULL) { >+ if (domain->conn.netlogon_creds == NULL) { >+ DBG_NOTICE("No security credentials available for " >+ "domain [%s]\n", domainname); >+ result = NT_STATUS_CANT_ACCESS_DOMAIN_INFO; >+ } else if (interactive && username != NULL && password != NULL) { > result = rpccli_netlogon_password_logon(domain->conn.netlogon_creds, > netlogon_pipe->binding_handle, > mem_ctx, >-- >2.1.4 >
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
Flags:
jra
:
review+
npower
:
review?
(
metze
)
Actions:
View
Attachments on
bug 11569
:
11529
|
11564
|
11565
|
11571
|
11581
|
11582
|
11583
| 11584 |
11588