diff options
author | Gerald Carter <jerry@samba.org> | 2003-08-09 23:12:35 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-08-09 23:12:35 +0000 |
commit | 3c537c906f29a08e75895c8c8e3ed5c5abaaa940 (patch) | |
tree | 4a5861b3e4f5833d69a4a23fcffebf945df22abf /source/smbd/sec_ctx.c | |
parent | ca29fdb9c28b7a61ce35eaea8864a8cd647b45cc (diff) | |
download | samba-3c537c906f29a08e75895c8c8e3ed5c5abaaa940.tar.gz samba-3c537c906f29a08e75895c8c8e3ed5c5abaaa940.tar.xz samba-3c537c906f29a08e75895c8c8e3ed5c5abaaa940.zip |
fix for BUG #267 (problem with supplementary groups).
Use winbindd to get the group list if possible since we already
know it from netsamlogon_cache.tdb. More effecient than letting
libc call getgrent() to get seconary groups.
Tested by Ken Cross.
Diffstat (limited to 'source/smbd/sec_ctx.c')
-rw-r--r-- | source/smbd/sec_ctx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/sec_ctx.c b/source/smbd/sec_ctx.c index 411ece52495..8a85792ead5 100644 --- a/source/smbd/sec_ctx.c +++ b/source/smbd/sec_ctx.c @@ -199,7 +199,7 @@ BOOL initialise_groups(char *user, uid_t uid, gid_t gid) /* Call initgroups() to get user groups */ - if (initgroups(user,gid) == -1) { + if (winbind_initgroups(user,gid) == -1) { DEBUG(0,("Unable to initgroups. Error was %s\n", strerror(errno) )); if (getuid() == 0) { if (gid < 0 || gid > 32767 || uid < 0 || uid > 32767) { |