If you are connecting to a LH flight within the EU, you will have to go thry passport control and security. If you are connecting to a LH flight going beyond EU.....my experience is that you might have to go thru security, maybe not. Depends on from which gate your connecting flight is leaving.