Samba4/OSX

Revision as of 19:34, 14 February 2011 by Bradskins (talk | contribs)

A brief howto on installing Samba 4 alpha14 on OS X. **Incomplete**

Dependencies

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

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

Compiling, Installing and Provisioning

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

$ curl http://download.samba.org/samba/ftp/samba4/samba-4.0.0alpha14.tar.gz -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 --realm=samdom.example.com --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller'

Management with Launchd

First, we need to disable the built-in Samba 3 services using LaunchCtl. You might want to disable Kerberos.

# launchctl
launchd% unload -w /System/Library/LaunchDaemons/smbd.plist 
launchd% unload -w /System/Library/LaunchDaemons/nmbd.plist
launchd% unload -w /System/Library/LaunchDaemons/edu.mit.Kerberos.krb5kdc.plist 
launchd% quit

Configuration with Server Admin

Building a PortFile

Notes

  1. This was a hack to help autotools find talloc in MacPorts. TODO: Gather more info and 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.