From 2df47b0a54ad0a973b81911ee507ab50555b24a6 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 6 Oct 2009 17:45:24 +0200 Subject: libwbclient: implement secure channel verification for specific domains in wbcCheckTrustCredentials(). Guenther --- nsswitch/libwbclient/wbc_pam.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'nsswitch/libwbclient/wbc_pam.c') diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c index 33044b2df7..4cd212a34a 100644 --- a/nsswitch/libwbclient/wbc_pam.c +++ b/nsswitch/libwbclient/wbc_pam.c @@ -502,18 +502,14 @@ wbcErr wbcCheckTrustCredentials(const char *domain, struct winbindd_response response; wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE; - if (domain) { - /* - * the current protocol doesn't support - * specifying a domain - */ - wbc_status = WBC_ERR_NOT_IMPLEMENTED; - BAIL_ON_WBC_ERROR(wbc_status); - } - ZERO_STRUCT(request); ZERO_STRUCT(response); + if (domain) { + strncpy(request.domain_name, domain, + sizeof(request.domain_name)-1); + } + /* Send request */ wbc_status = wbcRequestResponse(WINBINDD_CHECK_MACHACC, -- cgit