All the links I've read say the correct way is to have Active Directory installed before Sharepoint. But currently I have a machine running sharepoint and need to install active directory on it, is it possible? Has anyone done it? Any tips or links?
I am going to have a guess here and say yes it can work if you install Active Directory without enabling Domain Controller, so if you don't change SharePoint's server domain, it won't affect SharePoint. If it's a virtual machine you can just have a snapshot and try it and see what happens.
(That's just a guess, never tried it out. If am wrong please, someone correct me).