For the last year, I'd noticed oil seepage around the housing near the AT connector. I didn't pay much attention to it, knowing it's kind of a common issue on the LS. But then I went under the car again and saw that, well, it's starting to leak. If only it were just leaking around the connector seal, but the whole connector was wet and covered in dirt... it was time to do something about it.

Photo from the logbook of Lexus LS (USF40/41)

The first and most logical thought in this case was to remove the oil pan, pull out the entire wiring harness from the transmission, inspect it, and just put everything back together. But no such luck—I hadn't accounted for the fact that wiring runs to the valve body, seemingly for the input and output shaft speed sensors.

Photo from the logbook of Lexus LS (USF40/41)

Well, I didn't have the time or desire to remove the valve body, so I performed all the necessary procedures on the spot, cleaning everything until it was completely spotless—both on the AT housing mating surface and on the connector and its counterpart, since oil was everywhere.
I cleaned it using WD-40, followed up with Lavr contact cleaner.

Photo from the logbook of Lexus LS (USF40/41)

Photo from the logbook of Lexus LS (USF40/41)

Photo from the logbook of Lexus LS (USF40/41)

Photo from the logbook of Lexus LS (USF40/41)

Things were a bit easier with the connector side from the transmission end. Without freeing all the wires, it lifts about half a centimeter above the hole in the housing, and the nearby driveshaft just makes the whole job even less convenient :)

As expected, the entire problem was due to a dried-out rubber O-ring seal between the connector and the housing. After thoroughly cleaning and degreasing the surfaces, I applied sealant to the connector's mating section, filling the groove for the rubber ring with it as well. I seated the ring back in place and smeared more sealant over the top. I then reinstalled the connector and wiped away any excess. It actually turned out neater on the inside than I expected :)

Photo from the logbook of Lexus LS (USF40/41)

Photo from the logbook of Lexus LS (USF40/41)

since I already removed the oil pan, I'm replacing the filter, the rubber gasket on the pan, and all the drained ATF WS — it came out to a bit over 5 liters

Photo from the logbook of Lexus LS (USF40/41)

Photo from the logbook of Lexus LS (USF40/41)

I filled the automatic transmission with oil as follows:
— pour about 2 liters through the check plug until overflow starts
— the remaining 3 liters + 200 ml extra are poured into the transmission through the side fill plug on the housing

After starting the engine, I wait for the oil in the pan to heat up to 45°C, while smoothly cycling through the selector lever, manually shifting gears in the automatic transmission. Once the required temperature is reached, with the engine still running, I unscrew the check plug. At first, a full stream of oil flows out across the entire diameter of the hole, but it quickly changes to a thin trickle — that means the level is correct, so I screw the check plug back in. In short, all my extra 200 ml poured back out))
For peace of mind, I accessed the scanner and cleared the automatic transmission adaptation memory. That's about it :)