diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/lib/username.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/username.c b/source/lib/username.c index 3d37b42c51f..6321d470212 100644 --- a/source/lib/username.c +++ b/source/lib/username.c @@ -593,7 +593,7 @@ BOOL user_in_list(const char *user,const char **list, gid_t *groups, size_t n_gr will return domain local groups; while NT4 or mixed mode 2k DCs will not */ - if ( winbind_lookup_name(NULL, *list, &g_sid, &name_type) + if ( winbind_lookup_name(domain, groupname, &g_sid, &name_type) && ( name_type==SID_NAME_DOM_GRP || (strequal(lp_workgroup(), domain) && name_type==SID_NAME_ALIAS) ) ) { |