diff options
author | Günther Deschner <gd@samba.org> | 2008-08-29 16:12:04 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-10 15:42:30 +0200 |
commit | d9efd52fd09af752b3b7fae2a88a522e05e7f672 (patch) | |
tree | ffe46c8cded048ec49b481db31e63aca982ae889 /source3/nsswitch/pam_winbind.c | |
parent | e8fe6661b4bbf338f46c52cb12c7bdb04037f297 (diff) | |
download | samba-d9efd52fd09af752b3b7fae2a88a522e05e7f672.tar.gz samba-d9efd52fd09af752b3b7fae2a88a522e05e7f672.tar.xz samba-d9efd52fd09af752b3b7fae2a88a522e05e7f672.zip |
pam_winbind: remove unused pam_winbind_request().
Guenther
Diffstat (limited to 'source3/nsswitch/pam_winbind.c')
-rw-r--r-- | source3/nsswitch/pam_winbind.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index cac8550e60..a9d6aa650a 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -684,53 +684,6 @@ static int _make_remark_format(struct pwb_context *ctx, int type, const char *fo return ret; } -static int pam_winbind_request(struct pwb_context *ctx, - enum winbindd_cmd req_type, - struct winbindd_request *request, - struct winbindd_response *response) -{ - /* Fill in request and send down pipe */ - winbindd_init_request(request, req_type); - - if (winbind_write_sock(request, sizeof(*request), 0, 0) == -1) { - _pam_log(ctx, LOG_ERR, - "pam_winbind_request: write to socket failed!"); - winbind_close_sock(); - return PAM_SERVICE_ERR; - } - - /* Wait for reply */ - if (winbindd_read_reply(response) == -1) { - _pam_log(ctx, LOG_ERR, - "pam_winbind_request: read from socket failed!"); - winbind_close_sock(); - return PAM_SERVICE_ERR; - } - - /* We are done with the socket - close it and avoid mischeif */ - winbind_close_sock(); - - /* Copy reply data from socket */ - if (response->result == WINBINDD_OK) { - return PAM_SUCCESS; - } - - if (response->data.auth.pam_error != PAM_SUCCESS) { - _pam_log(ctx, LOG_ERR, - "request failed: %s, " - "PAM error was %s (%d), NT error was %s", - response->data.auth.error_string, - pam_strerror(ctx->pamh, response->data.auth.pam_error), - response->data.auth.pam_error, - response->data.auth.nt_status_string); - return response->data.auth.pam_error; - } - - _pam_log(ctx, LOG_ERR, "request failed, but PAM error 0!"); - - return PAM_SERVICE_ERR; -} - static int pam_winbind_request_log(struct pwb_context *ctx, int retval, const char *user, |