Samba4/OSX: Difference between revisions
From SambaWiki
No edit summary |
|||
Line 30: | Line 30: | ||
# make install |
# make install |
||
# ./setup/provision --realm=samdom.example.com --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller' |
# ./setup/provision --realm=samdom.example.com --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller' |
||
==Starting and Setting up Samba 4== |
|||
export PATH="/opt/local/samba/sbin:/opt/local/samba/bin:$PATH" |
|||
==Management with Launchd== |
==Management with Launchd== |
||
Revision as of 19:35, 21 March 2012
A brief howto on installing Samba 4 alpha18 on OS X Lion (non-server). **Incomplete**
Dependencies
Install MacPorts using the instructions on macports.org.
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/rsync.macports.org/release/tarballs/ports/net/bind9/Portfile
configure.args --mandir=${prefix}/share/man \ --with-openssl=${prefix} \ --with-libxml2=${prefix} \ --enable-threads \ --enable-ipv6 \ --with-dlopen=yes
Then install bind9 and other dependencies
# port install bind9 gnutls readline talloc popt
Compiling, Installing and Provisioning
You can use Git as in general guide, or you may prefer to use releases:
$ curl http://ftp.samba.org/pub/samba/samba4/samba-4.0.0alpha18.tar.gz -o samba-4.0.0alpha18.tar.gz $ tar -xvjf samba-4.0.0alpha18.tar.gz && cd samba-4.0.0alpha18
Since MacPorts installs Bind 9.9.0, we have to make a small change in source4/dns_server/dlz_minimal.h
#define DLZ_DLOPEN_VERSION 2
And we can go ahead with compiling Samba 4.
$ ./configure.developer --prefix=/opt/local/samba $ make # make install # ./setup/provision --realm=samdom.example.com --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller'
Starting and Setting up Samba 4
export PATH="/opt/local/samba/sbin:/opt/local/samba/bin:$PATH"