summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch/winbind_nss.c
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-01-10 18:49:37 +0000
committerHerb Lewis <herb@samba.org>2002-01-10 18:49:37 +0000
commite87d94d46d821382882fe1787df3bd2e3b0cd44e (patch)
treebf39b95d824e2fa85c04d721f4c050dc4a1b9c7b /source3/nsswitch/winbind_nss.c
parent50fa21fec1e54cbc9e4de53b6901c00d0389fb41 (diff)
downloadsamba-e87d94d46d821382882fe1787df3bd2e3b0cd44e.tar.gz
samba-e87d94d46d821382882fe1787df3bd2e3b0cd44e.tar.xz
samba-e87d94d46d821382882fe1787df3bd2e3b0cd44e.zip
merge tpots name changes into IRIX part of code. When you change the name
of a define you need to grep for the old name and change ALL places. (This used to be commit 09e3276fb7207dff73f181072851bd542fb64263)
Diffstat (limited to 'source3/nsswitch/winbind_nss.c')
-rw-r--r--source3/nsswitch/winbind_nss.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/nsswitch/winbind_nss.c b/source3/nsswitch/winbind_nss.c
index efb52f35c3c..0b639415610 100644
--- a/source3/nsswitch/winbind_nss.c
+++ b/source3/nsswitch/winbind_nss.c
@@ -206,8 +206,8 @@ winbind_callback(nsd_file_t **rqp, int fd)
return NSD_NEXT;
}
switch ((int)rq->f_cmd_data) {
- case WINBINDD_GETPWNAM_FROM_UID:
- case WINBINDD_GETPWNAM_FROM_USER:
+ case WINBINDD_GETPWUID:
+ case WINBINDD_GETPWNAM:
snprintf(result,1023,"%s:%s:%d:%d:%s:%s:%s\n",
pw->pw_name,
pw->pw_passwd,
@@ -217,8 +217,8 @@ winbind_callback(nsd_file_t **rqp, int fd)
pw->pw_dir,
pw->pw_shell);
break;
- case WINBINDD_GETGRNAM_FROM_GROUP:
- case WINBINDD_GETGRNAM_FROM_GID:
+ case WINBINDD_GETGRNAM:
+ case WINBINDD_GETGRGID:
if (gr->num_gr_mem && response.extra_data)
members = response.extra_data;
else
@@ -394,20 +394,20 @@ int lookup(nsd_file_t *rq)
if (strcasecmp(map,"passwd.byuid") == 0) {
request->data.uid = atoi(key);
- rq->f_cmd_data = (void *)WINBINDD_GETPWNAM_FROM_UID;
+ rq->f_cmd_data = (void *)WINBINDD_GETPWUID;
} else if (strcasecmp(map,"passwd.byname") == 0) {
strncpy(request->data.username, key,
sizeof(request->data.username) - 1);
request->data.username[sizeof(request->data.username) - 1] = '\0';
- rq->f_cmd_data = (void *)WINBINDD_GETPWNAM_FROM_USER;
+ rq->f_cmd_data = (void *)WINBINDD_GETPWNAM;
} else if (strcasecmp(map,"group.byname") == 0) {
strncpy(request->data.groupname, key,
sizeof(request->data.groupname) - 1);
request->data.groupname[sizeof(request->data.groupname) - 1] = '\0';
- rq->f_cmd_data = (void *)WINBINDD_GETGRNAM_FROM_GROUP;
+ rq->f_cmd_data = (void *)WINBINDD_GETGRNAM;
} else if (strcasecmp(map,"group.bygid") == 0) {
request->data.gid = atoi(key);
- rq->f_cmd_data = (void *)WINBINDD_GETGRNAM_FROM_GID;
+ rq->f_cmd_data = (void *)WINBINDD_GETGRGID;
} else {
/*
* Don't understand this map - just return not found