From 5294b48bb806cd5e3888254e0260efac32dcfec7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 20 Feb 2002 21:36:12 +0000 Subject: Thanks to David Edward Shapiro for spotting this! (groupname and domain name paramaters swapped, giving 'interesting' results...) Andrew Bartlett (This used to be commit 5aed3759d8edbe59df8c1ea70827c4b931393134) --- source3/lib/username.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') 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); -- cgit