summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_group.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-06-03 16:19:31 +0000
committerGerald Carter <jerry@samba.org>2003-06-03 16:19:31 +0000
commite1e363e4e90237c638e5adea3bb3493a35a61268 (patch)
tree083c08e00eb97d5d6a08d04dd179c71f783decd1 /source3/nsswitch/winbindd_group.c
parent989c2a374e58a05f680db67523c7adf38c3d0246 (diff)
downloadsamba-e1e363e4e90237c638e5adea3bb3493a35a61268.tar.gz
samba-e1e363e4e90237c638e5adea3bb3493a35a61268.tar.bz2
samba-e1e363e4e90237c638e5adea3bb3493a35a61268.zip
* set winbind cache time to 5 minutes
* quit obsessing over the sequence number so much * share the updated sequence number between parent and child winbindd processes in dual mode (This used to be commit 6fb5bdb30e2b1341ba600ce0dfd397394f7a831c)
Diffstat (limited to 'source3/nsswitch/winbindd_group.c')
-rw-r--r--source3/nsswitch/winbindd_group.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c
index 14ebb78466..94b6326b90 100644
--- a/source3/nsswitch/winbindd_group.c
+++ b/source3/nsswitch/winbindd_group.c
@@ -450,10 +450,11 @@ static BOOL get_sam_group_entries(struct getent_state *ent)
ent->num_sam_entries = num_entries;
- /* get the domain local groups if we are a member of
- a native win2k domain */
+ /* get the domain local groups if we are a member of a native win2k domain */
- if ( domain->native_mode && domain->methods->enum_local_groups )
+ if ( domain->native_mode
+ && domain->methods->enum_local_groups
+ && strequal(lp_workgroup(), domain->name) )
{
DEBUG(4,("get_sam_group_entries: Native Mode 2k domain; enumerating local groups as well\n"));