Howtoforge posted a guide about setting up OpenLDAP and Samba Domain Controller on Ubuntu 7.10
This document is a step by step guide for configuring Ubuntu 7.10 as a Samba Domain Controller with an LDAP backend (OpenLDAP). The point is to configure a server that can be comparable, from a central authentication point of view, to a Windows Server 2003 Domain Controller. The end result will be a server with an LDAP directory for storing user, group, and computer accounts. A Windows XP Professional SP2 workstation will be able to join the domain once properly configured.OpenLDAP + Samba Domain Controller On Ubuntu 7.10