The Samba-Bugzilla – Attachment 10299 Details for
Bug 10826
Using SFU id mapping fails for users from a trusted domain
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.1, cherry-picked from master
patch (text/plain), 1.53 KB, created by
Christof Schmitt
on 2014-09-19 22:46:14 UTC
(
hide
)
Description:
Patch for 4.1, cherry-picked from master
Filename:
MIME Type:
Creator:
Christof Schmitt
Created:
2014-09-19 22:46:14 UTC
Size:
1.53 KB
patch
obsolete
>From dc6b86b93c8f059b0cc96c364ffad05c88b7d92e Mon Sep 17 00:00:00 2001 >From: Christof Schmitt <cs@samba.org> >Date: Fri, 22 Aug 2014 09:15:59 -0700 >Subject: [PATCH] s3-winbindd: Use correct realm for trusted domains in idmap child > >When authenticating users in a trusted domain, the idmap_ad module >always connects to a local DC instead of one in the trusted domain. > >Fix this by passing the correct realm to connect to. > >Also Comment parameters passed to ads_cached_connection_connect > >Signed-off-by: Christof Schmitt <cs@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >(cherry picked from commit c203c722e7e22f9146f2ecf6f42452c0e82042e4) >--- > source3/winbindd/winbindd_ads.c | 11 +++++++++-- > 1 files changed, 9 insertions(+), 2 deletions(-) > >diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c >index 4c26389..e47613e 100644 >--- a/source3/winbindd/winbindd_ads.c >+++ b/source3/winbindd/winbindd_ads.c >@@ -187,8 +187,15 @@ ADS_STATUS ads_idmap_cached_connection(ADS_STRUCT **adsp, const char *dom_name) > } > } > >- status = ads_cached_connection_connect(adsp, realm, dom_name, ldap_server, >- password, realm, 0); >+ status = ads_cached_connection_connect( >+ adsp, /* Returns ads struct. */ >+ wb_dom->alt_name, /* realm to connect to. */ >+ dom_name, /* 'workgroup' name for ads_init */ >+ ldap_server, /* DNS name to connect to. */ >+ password, /* password for auth realm. */ >+ realm, /* realm used for krb5 ticket. */ >+ 0); /* renewable ticket time. */ >+ > SAFE_FREE(realm); > > return status; >-- >1.7.1 >
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:
cs
:
review+
jra
:
review+
Actions:
View
Attachments on
bug 10826
: 10299