A nice 'How To' for creating a Primary Domain Controller with Zimbra, this is specifically for Ubuntu but should be valid for all operating systems.

Zimbra Integration With Samba - Ubuntu Based (Similar To AD And Exchange) | HowtoForge - Linux Howtos and Tutorials