As documented in https://docs.moodle.org/en/LDAP_enrolment, one can auto-enrol in courses. But enrolling in cohorts is not supported. See "Is LDAP enrollment also groups/groupings/cohorts capable?" https://moodle.org/mod/forum/discuss.php?d=324567.
Now the concept of cohorts established in Moodle, allowing enrolling in cohorts would be logical and a major improvement.