Dons correct, to expand a that a bit... Getting to the connectors is really quite easy. With headlights showing (open), at the rotating headlamp bucket, around the rectangular perimeter of the rotating bucket will be 6 machine screws, three at the top, three at the bottom. Use a long Phillips screwdriver and remove the 6 screws. You need to reach about 3 inches into the perimeter edges of the bucket to get to the Phillips screw heads. Unless you have a magnetic tipped screwdriver, you may want to slip some paper under the width of the headlight bucket slipped in above the bumper to catch the screws if you drop them. If you are lucky, the screws will come out and not be seized into the rear housing screw holes.. You MUST support the trim piece as you remove the last screw, it weighs quite a bit and you don't want to drop it. You will now have access to both lamps in the bucket.
Once that front trim section of the bucket is removed, there are three screws on the outer edges of the rings of the lamp retainers, If I recall correctly, the screws do not need to be removed, just sufficiently loosened as the bracket holes are teardrop shaped. Rotate that retainer ring till the screw heads will pass thru the larger part of the teardrops and remove the retainer. You can now carefully lift out the headlamps to access the connectors plugs at the rear. of the lamps.
When you re-assemble, I would suggest putting some anti-size paste on the screw threads.
Note: This trim piece removal is also required to access to access the aiming screws for the headlamps.