From SambaWiki
Revision as of 15:12, 5 February 2011 by Bradskins (talk | contribs) (→‎Notes)
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 alpha14 on OS X.


Install MacPorts using the instructions on Once your MacPorts system is set up how you like it, type in the following command to install Samba 4 dependencies.

# port install python27 python_select gnutls readline talloc && python_select python27

Compiling Samba4

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

$ curl -o samba-4.0.0alpha14.tar.gz
$ tar -xvjf samba-4.0.0alpha14.tar.gz
$ cd samba-4.0.0alpha14/source4
$ export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig1
$ ./configure2
$ make
# make install
# ./setup/provision --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller'3

Managing Samba4 with Launchd

Configuring Samba 4 with Server Admin

Building a Samba4 Port


  1. This was a hack to help autotools find talloc in MacPorts. TODO: Gather more info a build a bug report, if it is still required on alpha15.
  2. Configure.developer build fails when compiling pam_winbind.c. TODO: Investigate and file a bug report.