static bool test_wbc_ping(struct torture_context *tctx) { torture_assert_wbc_ok(tctx, wbcPing(), "wbcPing failed"); return true; }
static bool wbinfo_ping(void) { wbcErr wbc_status; wbc_status = wbcPing(); /* Display response */ d_printf("Ping to winbindd %s\n", WBC_ERROR_IS_OK(wbc_status) ? "succeeded" : "failed"); return WBC_ERROR_IS_OK(wbc_status); }
bool winbind_ping(void) { wbcErr result = wbcPing(); return (result == WBC_ERR_SUCCESS); }