summaryrefslogtreecommitdiffstats
path: root/source/lib/username.c
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
commit5aed3759d8edbe59df8c1ea70827c4b931393134 (patch)
tree4cbc486890e34230a36436828f73b744945f3764 /source/lib/username.c
parent029e2b307d91171168040e71d2e5d5e0d01b7633 (diff)
downloadsamba-5aed3759d8edbe59df8c1ea70827c4b931393134.tar.gz
samba-5aed3759d8edbe59df8c1ea70827c4b931393134.tar.xz
samba-5aed3759d8edbe59df8c1ea70827c4b931393134.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
Diffstat (limited to 'source/lib/username.c')
-rw-r--r--source/lib/username.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/username.c b/source/lib/username.c
index 8c9c3a7ca9b..6482bab87ef 100644
--- a/source/lib/username.c
+++ b/source/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);