summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-08-09 23:12:35 +0000
committerGerald Carter <jerry@samba.org>2003-08-09 23:12:35 +0000
commitc1bc3a7841890d8af470863e018721c035754999 (patch)
tree11bcaa505571c525e0d09c899fc5651cb372dac0 /source3/smbd
parent722ce0eb955e0fd0d74593bada178f17263254bf (diff)
downloadsamba-c1bc3a7841890d8af470863e018721c035754999.tar.gz
samba-c1bc3a7841890d8af470863e018721c035754999.tar.bz2
samba-c1bc3a7841890d8af470863e018721c035754999.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. (This used to be commit 3c537c906f29a08e75895c8c8e3ed5c5abaaa940)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sec_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c
index 411ece5249..8a85792ead 100644
--- a/source3/smbd/sec_ctx.c
+++ b/source3/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) {