UCS core is free and runs windows compatible active directory. Not sure they have a pi4 version though.