summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-02-20 21:36:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-02-20 21:36:12 +0000
commit5294b48bb806cd5e3888254e0260efac32dcfec7 (patch)
treef460dd1cb2fc14d304eb1abd9646f289d4f82e3b /source3/lib
parente026103a975c3ab16f99118a53f585e7d34ad1da (diff)
downloadsamba-5294b48bb806cd5e3888254e0260efac32dcfec7.tar.gz
samba-5294b48bb806cd5e3888254e0260efac32dcfec7.tar.bz2
samba-5294b48bb806cd5e3888254e0260efac32dcfec7.zip
Thanks to David Edward Shapiro <David.Edward.Shapiro@btitele.com> for spotting
this! (groupname and domain name paramaters swapped, giving 'interesting' results...) Andrew Bartlett (This used to be commit 5aed3759d8edbe59df8c1ea70827c4b931393134)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/username.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c
index 8c9c3a7ca9..6482bab87e 100644
--- a/source3/lib/username.c
+++ b/source3/lib/username.c
@@ -575,7 +575,7 @@ BOOL user_in_list(const char *user,char **list)
domain[PTR_DIFF(p, *list)] = 0;
/* Check to see if name is a Windows group */
- if (winbind_lookup_name(groupname, domain, &g_sid, &name_type) && name_type == SID_NAME_DOM_GRP) {
+ if (winbind_lookup_name(domain, groupname, &g_sid, &name_type) && name_type == SID_NAME_DOM_GRP) {
/* Check if user name is in the Windows group */
ret = user_in_winbind_group_list(user, *list, &winbind_answered);