Shadow Maps

I’m trying to implement shadow maps in GLSL, but my the shadow map texture I’m creating doesn’t seem to be working correctly. Does anyone know of a tutorials that covers shadow map generation or source code that shows how to do it?