summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_group.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-26 09:55:38 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-26 09:55:38 +0000
commitce1b4d4c309e4a60bec5a53224585bd504264672 (patch)
tree343f1d7815d9e29967741113e684ca31ebf2078d /source/nsswitch/winbindd_group.c
parent85018fecfad1f7f6ef44b511bac937881a7bf937 (diff)
downloadsamba-ce1b4d4c309e4a60bec5a53224585bd504264672.tar.gz
samba-ce1b4d4c309e4a60bec5a53224585bd504264672.tar.xz
samba-ce1b4d4c309e4a60bec5a53224585bd504264672.zip
Change the winbind interface to use seperate 'domain' and 'username' feilds for
the sid->uid and uid->sid conversions. Remove some duplicate arguments from these funcitons, and update the request/response structures for this and the 'winbind domain name' feature. As such 'winbindd_lookup_name' now takes both a domain and username.
Diffstat (limited to 'source/nsswitch/winbindd_group.c')
-rw-r--r--source/nsswitch/winbindd_group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd_group.c b/source/nsswitch/winbindd_group.c
index 9ef942a95d8..2412b12d713 100644
--- a/source/nsswitch/winbindd_group.c
+++ b/source/nsswitch/winbindd_group.c
@@ -215,7 +215,7 @@ enum winbindd_result winbindd_getgrnam(struct winbindd_cli_state *state)
/* Get rid and name type from name */
- if (!winbindd_lookup_sid_by_name(domain, name_domain, name_group, &group_sid,
+ if (!winbindd_lookup_sid_by_name(domain, name_group, &group_sid,
&name_type)) {
DEBUG(1, ("group %s in domain %s does not exist\n",
name_group, name_domain));
@@ -792,7 +792,7 @@ enum winbindd_result winbindd_getgroups(struct winbindd_cli_state *state)
/* Get rid and name type from name. The following costs 1 packet */
- if (!winbindd_lookup_sid_by_name(domain, name_domain, name_user, &user_sid,
+ if (!winbindd_lookup_sid_by_name(domain, name_user, &user_sid,
&name_type)) {
DEBUG(1, ("user '%s' does not exist\n", name_user));
goto done;