git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf7022
)
fix user_in_list to work with winbind groups again; my bug
author
Gerald Carter
<jerry@samba.org>
Fri, 25 Jul 2003 16:03:46 +0000
(16:03 +0000)
committer
Gerald Carter
<jerry@samba.org>
Fri, 25 Jul 2003 16:03:46 +0000
(16:03 +0000)
(This used to be commit
850f4fafdbaf19ea13273a8bf82433ba50a11868
)
source3/lib/username.c
patch
|
blob
|
history
diff --git
a/source3/lib/username.c
b/source3/lib/username.c
index 3d37b42c51fe0e1e0a94714ed960512217ba27d5..6321d4702127b402cd1d8af5c5bfdf6c50e689a6 100644
(file)
--- 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) ) )
{