The Samba-Bugzilla – Attachment 10923 Details for
Bug 11185
'force user' does not work with winbind default domain user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for master
0001-s3-passdb-Fix-force-user-with-winbind-default-domain.patch (text/plain), 1.40 KB, created by
Andreas Schneider
on 2015-03-31 16:20:22 UTC
(
hide
)
Description:
patch for master
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2015-03-31 16:20:22 UTC
Size:
1.40 KB
patch
obsolete
>From d8199f61abfe57da9e415d9ad13d91eb8903398e Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Tue, 31 Mar 2015 18:15:51 +0200 >Subject: [PATCH] s3-passdb: Fix 'force user' with winbind default domain > >If we set 'winbind use default domain' and specify 'force user = user' >without a domain name we fail to log in. In this case we need to try a >lookup with the domain name. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11185 > >Signed-off-by: Andreas Schneider <asn@samba.org> >--- > source3/passdb/lookup_sid.c | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > >diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c >index c5b28d8..a85b28f 100644 >--- a/source3/passdb/lookup_sid.c >+++ b/source3/passdb/lookup_sid.c >@@ -395,6 +395,30 @@ bool lookup_name_smbconf(TALLOC_CTX *mem_ctx, > ret_sid, ret_type); > } > >+ /* Try with winbind default domain name. */ >+ if (lp_winbind_use_default_domain()) { >+ bool ok; >+ >+ qualified_name = talloc_asprintf(mem_ctx, >+ "%s\\%s", >+ lp_workgroup(), >+ full_name); >+ if (qualified_name == NULL) { >+ return false; >+ } >+ >+ ok = lookup_name(mem_ctx, >+ qualified_name, >+ flags, >+ ret_domain, >+ ret_name, >+ ret_sid, >+ ret_type); >+ if (ok) { >+ return true; >+ } >+ } >+ > /* Try with our own SAM name. */ > qualified_name = talloc_asprintf(mem_ctx, "%s\\%s", > get_global_sam_name(), >-- >2.3.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
Actions:
View
Attachments on
bug 11185
: 10923 |
10927
|
10928
|
10929