Right; a professor's tenure at many research universities depends on the professor's publication and grant-raising success, with less of an emphasis on a professor's teaching performance.
That's one of the things I like about teaching at a community college; whether or not I get tenure is based largely on my teaching performance, with service to the college and community making up the remainder of my evaluation. While I don't have upper-division undergrads, grad students, or postdocs, I have no research pressures whatsoever, which, interestingly enough, is the ultimate form of research freedom. I don't have a lot of time during the school year since I teach a 4-4 load, but I'm officially off duty during my one-month winter break and my 2.5-month summer break, which means I could do whatever I want during my breaks, including research (I'm actually in Japan right now as a visiting researcher at a Japanese university).
There are some teaching-oriented universities that have different balances regarding the importance of teaching and research in making tenure/promotion decisions, ranging from comprehensive masters-focused universities like those in the California State University system to private liberal arts colleges such as Swarthmore.