From SambaWiki
Revision as of 18:58, 21 March 2012 by Bradskins (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A brief howto on installing Samba 4 alpha18 on OS X Lion (non-server). **Incomplete**


Install MacPorts using the instructions on

Bind 9 with Dynamic Updates

Edit the Portfile in MacPorts to build Bind 9.9.0 for Samba 4 dynamic updates. The file is located at /opt/local/var/macports/sources/

configure.args          --mandir=${prefix}/share/man \
                                --with-openssl=${prefix} \
                                --with-libxml2=${prefix} \
                                --enable-threads \
                                --enable-ipv6 \

Then install bind9 and other dependencies

# port install bind9 gnutls readline talloc

Compiling, Installing and Provisioning

You can use Git as in general guide, or you may prefer to use releases:

$ curl -o samba-4.0.0alpha18.tar.gz
$ tar -xvjf samba-4.0.0alpha18.tar.gz && cd samba-4.0.0alpha18
$ ./configure.developer 
$ make
# make install
# ./setup/provision --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller'

Management with Launchd

Building a PortFile