WARNING: This page is about a different car, the 2002 Subaru Outback and 2002 Subaru Legacy. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: Identifying AT Shift Lock System Terminals
Courtesy of SUBARU OF AMERICA, INC.
Fig 2: AT Shift Lock System Electrical Specification Chart