The Samba-Bugzilla – Attachment 8950 Details for
Bug 7588
'Permission denied' if AD user is member in more than 16 groups on OpenIndiana/Illumos/OpenSolaris/Solaris
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
nss_winbind patch for master / 3.6 (should apply to other versions as well)
nss_winbind-solaris-16-groups.patch (text/plain), 1.04 KB, created by
Andrew Bartlett
on 2013-06-08 03:37:18 UTC
(
hide
)
Description:
nss_winbind patch for master / 3.6 (should apply to other versions as well)
Filename:
MIME Type:
Creator:
Andrew Bartlett
Created:
2013-06-08 03:37:18 UTC
Size:
1.04 KB
patch
obsolete
>diff --git a/nsswitch/winbind_nss_linux.c b/nsswitch/winbind_nss_linux.c >index 8d66a74..aaabc96 100644 >--- a/nsswitch/winbind_nss_linux.c >+++ b/nsswitch/winbind_nss_linux.c >@@ -25,6 +25,8 @@ > #include <pthread.h> > #endif > >+#include "lib/util/tsort.h" >+ > #if HAVE_PTHREAD > static pthread_mutex_t winbind_nss_mutex = PTHREAD_MUTEX_INITIALIZER; > #endif >@@ -1044,6 +1046,11 @@ _nss_winbind_getgrgid_r(gid_t gid, > > /* Initialise supplementary groups */ > >+static int gid_compare(void *gid_1, void *gid_2) >+{ >+ return (*(gid_t *)gid_1 - *(gid_t *)gid_2); >+} >+ > NSS_STATUS > _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start, > long int *size, gid_t **groups, long int limit, >@@ -1075,6 +1082,8 @@ _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start, > int num_gids = response.data.num_entries; > gid_t *gid_list = (gid_t *)response.extra_data.data; > >+ TYPESAFE_QSORT(gid_list, num_gids, gid_compare); >+ > #ifdef DEBUG_NSS > fprintf(stderr, "[%5d]: initgroups %s: got NSS_STATUS_SUCCESS " > "and %d gids\n", getpid(),
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 7588
:
5866
|
5867
|
5868
|
5869
| 8950 |
8951
|
8996
|
8997