The Samba-Bugzilla – Attachment 459 Details for
Bug 1183
Duplicate GIDs returned (when multiple AD groups mapped to single gid)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixed previous patch to search only assigned elements, not entire gid array length.
winbind_nss_linux.c.diff (text/plain), 999 bytes, created by
John Klinger
on 2004-03-29 13:13:31 UTC
(
hide
)
Description:
Fixed previous patch to search only assigned elements, not entire gid array length.
Filename:
MIME Type:
Creator:
John Klinger
Created:
2004-03-29 13:13:31 UTC
Size:
999 bytes
patch
obsolete
>--- 3.0.1/nsswitch/winbind_nss_linux.c Thu Dec 4 21:38:37 2003 >+++ 3.0.1/nsswitch/winbind_nss_linux.c Tue Jan 27 16:56:17 2004 >@@ -809,6 +809,9 @@ > struct winbindd_request request; > struct winbindd_response response; > int i; >+ int j; >+ int duplicate; >+ int start_ndx = *start; > > #ifdef DEBUG_NSS > fprintf(stderr, "[%5d]: initgroups %s (%d)\n", getpid(), >@@ -831,9 +834,13 @@ > > for (i = 0; i < num_gids; i++) { > >- /* Skip primary group */ >+ /* Skip any group ids that are already identified */ > >- if (gid_list[i] == group) continue; >+ duplicate = (gid_list[i] == group); >+ for (j = start_ndx; !duplicate && j < *start; j++) { >+ duplicate = (gid_list[i] == (*groups)[j]); >+ } >+ if (duplicate) continue; > > /* Add to buffer */
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 1183
:
437
| 459