I’ve got microsoft active directory working with ERPnext - see my post ERPNext Active Directory - #5 by rahim_ahmed