Untangle for filtering Unifi for Wifi and switching all while using a windows DC and active directory

Right now we have Untangle in transparent bridge mode with a Windows domain controller and a Unifi cloud key controlling APs and protect for some cameras. We have a dream machine pro see I would to change out for the cloudkey. What should I do to make this work together?

One reason we use active directory is for an integration with papercut (printer use management).

Should I keep using the cloudkey and sell the DreamMachine Pro SE?

Yes, I would not use the Dream Machine, just the Untangle.