Cast members cannot acknowledge a celebrity as such.
Celebrities are the same as every other park guest if you're on stage. Asking a celebrity for a photo or autograph is grounds for immediate release from your job. I never encountered any celebrities while working at Hollywood Studios, which was Disney-MGM Studios while I was there, so it wasn't an issue for me. (No, I'm definitely not bummed by that. Nope.)