diff options
author | Jeremy Allison <jra@samba.org> | 2006-04-22 01:59:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:26 -0500 |
commit | ad1fcb7b15f9ea4208d746073c5a00216290a33b (patch) | |
tree | c682121a4c2021b3f79b03addaad3639f465a049 /source3 | |
parent | 4af4ccc1ab448e902d9c3949ce284923a490a73c (diff) | |
download | samba-ad1fcb7b15f9ea4208d746073c5a00216290a33b.tar.gz samba-ad1fcb7b15f9ea4208d746073c5a00216290a33b.tar.bz2 samba-ad1fcb7b15f9ea4208d746073c5a00216290a33b.zip |
r15160: Fix from William Jojo I thought had already been added (but
hadn't).
Jeremy.
(This used to be commit dcbece8254e5de861d04b691d733616fc25cd585)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbind_nss_aix.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source3/nsswitch/winbind_nss_aix.c b/source3/nsswitch/winbind_nss_aix.c index b898e3c3af..c5d98dad06 100644 --- a/source3/nsswitch/winbind_nss_aix.c +++ b/source3/nsswitch/winbind_nss_aix.c @@ -632,19 +632,17 @@ static int wb_aix_user_attrib(const char *key, char *attributes[], results[i].attr_un.au_char = strdup(pwd->pw_passwd); } else if (strcmp(attributes[i], S_HOME) == 0) { results[i].attr_un.au_char = strdup(pwd->pw_dir); - } else if (strcmp(attributes[0], S_SHELL) == 0) { + } else if (strcmp(attributes[i], S_SHELL) == 0) { results[i].attr_un.au_char = strdup(pwd->pw_shell); - } else if (strcmp(attributes[0], S_REGISTRY) == 0) { + } else if (strcmp(attributes[i], S_REGISTRY) == 0) { results[i].attr_un.au_char = strdup("WINBIND"); - } else if (strcmp(attributes[0], S_GECOS) == 0) { + } else if (strcmp(attributes[i], S_GECOS) == 0) { results[i].attr_un.au_char = strdup(pwd->pw_gecos); - } else if (strcmp(attributes[0], S_PGRP) == 0) { + } else if (strcmp(attributes[i], S_PGRP) == 0) { results[i] = pwd_to_group(pwd); - } else if (strcmp(attributes[0], S_GECOS) == 0) { - results[i].attr_un.au_char = strdup(pwd->pw_gecos); - } else if (strcmp(attributes[0], S_GROUPSIDS) == 0) { + } else if (strcmp(attributes[i], S_GROUPS) == 0) { results[i] = pwd_to_groupsids(pwd); - } else if (strcmp(attributes[0], "SID") == 0) { + } else if (strcmp(attributes[i], "SID") == 0) { results[i] = pwd_to_sid(pwd); } else { logit("Unknown user attribute '%s'\n", attributes[i]); |