freeRADIUS authencation with Active Directory Backend

I use Unifi APs with WPA-enterprise for my main network. I currently am using network policy server to handle radius authentication using AD as the user database. NPS is buggy and have continuous problems. I can’t get freeradius to work with AD via LDAP. Is there another way to archive this?