diff options
author | Gerald Carter <jerry@samba.org> | 2003-07-25 16:03:46 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-07-25 16:03:46 +0000 |
commit | 5a6661100bbd468b3cf9573d4da25618583dac90 (patch) | |
tree | 6d83c676a107ac71afe81a3e6693d6e55dbcbc6f | |
parent | 6bf70229ae11147496ac7318a3c980c3b985ce8b (diff) | |
download | samba-5a6661100bbd468b3cf9573d4da25618583dac90.tar.gz samba-5a6661100bbd468b3cf9573d4da25618583dac90.tar.bz2 samba-5a6661100bbd468b3cf9573d4da25618583dac90.zip |
fix user_in_list to work with winbind groups again; my bug
(This used to be commit 850f4fafdbaf19ea13273a8bf82433ba50a11868)
-rw-r--r-- | source3/lib/username.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c index 3d37b42c51..6321d47021 100644 --- a/source3/lib/username.c +++ b/source3/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) ) ) { |