Use a transform node to, well, transform between different coordinate spaces.

Also on the details panel for the material itself (click off a node into the grid) there is a checkbox for tangent-space-normals. If you want the material to work in worldspace with normals, you can uncheck this.
