The Samba-Bugzilla – Attachment 3485 Details for
Bug 5696
force group fails at smbd/service.c:find_forced_group(606)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
look (text/plain), 1.17 KB, created by
Jeremy Allison
on 2008-08-16 21:26:50 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2008-08-16 21:26:50 UTC
Size:
1.17 KB
patch
obsolete
>diff --git a/source/winbindd/winbindd_passdb.c b/source/winbindd/winbindd_passdb.c >index 8387565..5677c01 100644 >--- a/source/winbindd/winbindd_passdb.c >+++ b/source/winbindd/winbindd_passdb.c >@@ -94,6 +94,7 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain, > DOM_SID *sid, > enum lsa_SidType *type) > { >+ const char *fullname; > uint32 flags = LOOKUP_NAME_ALL; > > switch ( original_cmd ) { >@@ -107,12 +108,27 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain, > break; > } > >- DEBUG(10, ("Finding name %s\n", name)); >+ if (domain_name && domain_name[0] && strchr_m(name, '\\') == NULL) { >+ fullname = talloc_asprintf(mem_ctx, "%s\\%s", >+ domain_name, name); >+ if (fullname == NULL) { >+ return NT_STATUS_NO_MEMORY; >+ } >+ } else { >+ fullname = name; >+ } >+ >+ DEBUG(10, ("Finding fullname %s\n", fullname)); > >- if ( !lookup_name( mem_ctx, name, flags, NULL, NULL, sid, type ) ) { >+ if ( !lookup_name( mem_ctx, fullname, flags, NULL, NULL, sid, type ) ) { > return NT_STATUS_NONE_MAPPED; > } > >+ DEBUG(10, ("name_to_sid for %s returned %s (%s)\n", >+ fullname, >+ sid_string_dbg(sid), >+ sid_type_lookup((uint32)*type))); >+ > return NT_STATUS_OK; > } >
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 5696
: 3485