Snapping object in 3D world to a point...

I need to snap an object in the 3D OpenGL world to the mouse point on screen, the object always uses 0.0f as one of it’s 3 coordinates so there’s no problems with clashing coordinates when converting from 2D to 3D but the question is how can I make an object snap underneath the mouse ?, does anyone have any ideas, sample code or tutorials ?