What is the name of the character who said, "We don't need no stinking badges"?

No, actually, it was Shelley Morrison. Here, btw, is a website that looks at the different known incidences of the line “X? We don’t need no stinking X”

http://www.darryl.com/badges/

Baptists? I believe we could persevere quite well despite the virtual absence of members of that congregation, particularly those among their number who might have neglected personal hygiene.

Badge quotes? We don’t need no stinking…

Oh, never mind.

O.K., I didn’t find any Shelley Morrison listed among the cast members of Troop Beverly Hills on the home page for the film in the IMDb. I had assumed that you had confused her with Shelley Long, who stars in the film. Now that I look through the entire cast list I see that Shelley Morrison is in the film, although she’s fairly low in the cast list. Also, I had never heard of Shelley Morrison before and I still have no idea who she is.

Her biggest role so far has been that of “Rosario” on Will and Grace.

http://www.nbc.com/Will_&_Grace/bios/Shelley_Morrison.html

I saw that in her IMDb entry, but I never watch Will and Grace, so I still have no idea who she is.