If you want integrate Ubuntu Desktop machine to Windows Active Directory then you can try this tutoriak from Ubuntu web page:
If you want reinstall your Windows server to example Ubuntu server then you need install couple programs
For Active Directory type authentication you need to install LDAP Server
For DNS you need to install BIND
For Mail you need to install Postfix
If you want to access Linux server with Windows machine you need to install Samba server.