Where should I attach a laptop lock?

Attach the cable to a sturdy, immovable object such as a fixed desk frame, heavy table leg or bolted-down structure. Avoid lightweight or movable furniture.