diff options
Diffstat (limited to 'nsswitch/winbind_nss_aix.c')
-rw-r--r-- | nsswitch/winbind_nss_aix.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/nsswitch/winbind_nss_aix.c b/nsswitch/winbind_nss_aix.c index 66200f3562..7a847b2344 100644 --- a/nsswitch/winbind_nss_aix.c +++ b/nsswitch/winbind_nss_aix.c @@ -279,7 +279,8 @@ static struct group *wb_aix_getgrgid(gid_t gid) request.data.gid = gid; - ret = winbindd_request_response(WINBINDD_GETGRGID, &request, &response); + ret = winbindd_request_response(NULL, WINBINDD_GETGRGID, + &request, &response); logit("getgrgid ret=%d\n", ret); @@ -311,7 +312,8 @@ static struct group *wb_aix_getgrnam(const char *name) STRCPY_RETNULL(request.data.groupname, name); - ret = winbindd_request_response(WINBINDD_GETGRNAM, &request, &response); + ret = winbindd_request_response(NULL, WINBINDD_GETGRNAM, + &request, &response); HANDLE_ERRORS(ret); @@ -370,7 +372,8 @@ static char *wb_aix_getgrset(char *user) free(r_user); } - ret = winbindd_request_response(WINBINDD_GETGROUPS, &request, &response); + ret = winbindd_request_response(NULL, WINBINDD_GETGROUPS, + &request, &response); HANDLE_ERRORS(ret); @@ -409,7 +412,8 @@ static struct passwd *wb_aix_getpwuid(uid_t uid) request.data.uid = uid; - ret = winbindd_request_response(WINBINDD_GETPWUID, &request, &response); + ret = winbindd_request_response(NULL, WINBINDD_GETPWUID, + &request, &response); HANDLE_ERRORS(ret); @@ -442,7 +446,8 @@ static struct passwd *wb_aix_getpwnam(const char *name) STRCPY_RETNULL(request.data.username, name); - ret = winbindd_request_response(WINBINDD_GETPWNAM, &request, &response); + ret = winbindd_request_response(NULL, WINBINDD_GETPWNAM, + &request, &response); HANDLE_ERRORS(ret); @@ -475,7 +480,8 @@ static int wb_aix_lsuser(char *attributes[], attrval_t results[], int size) ZERO_STRUCT(request); ZERO_STRUCT(response); - ret = winbindd_request_response(WINBINDD_LIST_USERS, &request, &response); + ret = winbindd_request_response(NULL, WINBINDD_LIST_USERS, + &request, &response); if (ret != 0) { errno = EINVAL; return -1; @@ -523,7 +529,8 @@ static int wb_aix_lsgroup(char *attributes[], attrval_t results[], int size) ZERO_STRUCT(request); ZERO_STRUCT(response); - ret = winbindd_request_response(WINBINDD_LIST_GROUPS, &request, &response); + ret = winbindd_request_response(NULL, WINBINDD_LIST_GROUPS, + &request, &response); if (ret != 0) { errno = EINVAL; return -1; @@ -602,7 +609,8 @@ static attrval_t pwd_to_sid(struct passwd *pwd) request.data.uid = pwd->pw_uid; - if (winbindd_request_response(WINBINDD_UID_TO_SID, &request, &response) != + if (winbindd_request_response(NULL, WINBINDD_UID_TO_SID, + &request, &response) != NSS_STATUS_SUCCESS) { r.attr_flag = ENOENT; } else { @@ -888,7 +896,8 @@ static int wb_aix_authenticate(char *user, char *pass, free(r_user); } - result = winbindd_request_response(WINBINDD_PAM_AUTH, &request, &response); + result = winbindd_request_response(NULL, WINBINDD_PAM_AUTH, + &request, &response); winbindd_free_response(&response); @@ -937,7 +946,8 @@ static int wb_aix_chpass(char *user, char *oldpass, char *newpass, char **messag free(r_user); } - result = winbindd_request_response(WINBINDD_PAM_CHAUTHTOK, &request, &response); + result = winbindd_request_response(NULL, WINBINDD_PAM_CHAUTHTOK, + &request, &response); winbindd_free_response(&response); |