Nahum Shalman

Some quick notes on compiling and running Samba 4 on SmartOS

Some quick notes on compiling and running Samba 4 on SmartOS

2013-04-19

Setup

  1. Follow Jonathan Perkin's instructions for setting up a pkgsrc tree for builds (I used 2012Q4 on base64-1.9.1)
  2. Patch the wip/samba package:
diff --git a/samba/PLIST b/samba/PLIST
index f69b907..1ae2141 100644
--- a/samba/PLIST
+++ b/samba/PLIST
@@ -187,7 +187,6 @@ lib/libndr.so.0
 lib/libndr.so.0.0.1
 lib/libnetapi.so
 lib/libnetapi.so.0
-lib/libnss_winbind.so
 lib/libnss_wins.so
 lib/libnss_wins.so.2
 lib/libpdb.so
@@ -753,7 +752,6 @@ lib/samba/service/winbind.so
 lib/samba/service/wrepl.so
 lib/samba/vfs/acl_tdb.so
 lib/samba/vfs/acl_xattr.so
-lib/samba/vfs/aio_fork.so
 lib/samba/vfs/aio_posix.so
 lib/samba/vfs/aio_pthread.so
 lib/samba/vfs/audit.so

Building and Running it

  1. Build and install samba
  2. Run the domain setup with an extra flag
samba-tool domain provision --use-ntvfs --interactive
  (follow prompts)
cp /opt/local/etc/samba/private/krb5.conf /etc/krb5/krb5.conf

Next steps

  1. Create an SMF manifest (I haven't done this yet... I'm currently just running it manually for testing)
  2. (Also haven't done this yet:) Add the Global zone to the domain
smartos