This is a common problem in an early MY Legacy. One of the local all Subaru shops even offers a discount sevice package to repair the door locks. I do not know what needs to be repaired, but I am sure one of your local Subaru shops could easily tell you.