--- 3.0.1/nsswitch/winbindd_group.c Mon Feb 2 16:39:57 2004 +++ 3.0.1/nsswitch/winbindd_group.c Mon Feb 2 16:44:07 2004 @@ -25,6 +25,8 @@ #include "includes.h" #include "winbindd.h" +extern BOOL opt_nocache; + #undef DBGC_CLASS #define DBGC_CLASS DBGC_WINBIND @@ -967,10 +969,12 @@ goto done; } - /* Treat the info3 cache as authoritative as the - lookup_usergroups() function may return cached data. */ - - if ((info3 = netsamlogon_cache_get(mem_ctx, &user_sid))) { + /* + * Treat the info3 cache as authoritative as the + * lookup_usergroups() function may return cached data, + * unless the no-cache option was specified for winbindd. + */ + if (! opt_nocache && (info3 = netsamlogon_cache_get(mem_ctx, &user_sid))) { DEBUG(10, ("winbindd_getgroups: info3 has %d groups, %d other sids\n", info3->num_groups2, info3->num_other_sids));