I need to create a user that connects to my postgresql database but with windows authentication (domain \ user)
For me at least there seems to be insufficient detail here. You should probably peruse the documentation to see what options and constraints are involved and then ask more specific questions.