If you haven't done so already then inspect the SAS supplied script importad.sas. This script contains a macro %ldapextrpersons that should give you pointers.
Usage Note 40628: Automating the addition of users and groups to a SAS® Metadata Repository
The importad.sas script should be available under:
Windows: SAS-installation-directory\SASFoundation\9.4\core\sample\importad.sas
Unix: SAS-installation-directory/SASFoundation/9.4/samples/base/importad.sas
... View more