Success: samba4 on gentoo

Dirk Gouders gouders at
Wed Sep 7 08:52:34 MDT 2011

> On Wed, 07 Sep 2011 15:32:10 +0200, Dirk Gouders
> <gouders at> wrote:
>>as suggested in the wiki I'd like to report success in running samba4
>>(current git clone) on a gentoo system.
> just out of curiosity: Did you use one of the ebuilds for samba-git,
> available from various portage overlays? If yes, which one?
> Did you have to do adjustments to the ebuild in question?

No, I built it manually -- first time like this:

$ ./configure.developer --enable-fhs --prefix=/usr
$ make
$ make quicktest
$ make install

Before I switch to ebuilds I want to get a deeper understanding of
samba4 so that I get a feeling where to search for errors should
problems arise.

Currently I am testing replication and did a fresh install with some
other configure options:

./configure.developer --enable-fhs \
		      --prefix=/usr \
		      --sysconfdir=/etc/ \
		      --localstatedir=/var \
 		      --with-modulesdir=/usr/lib/samba/modules \
		      --with-privatedir=/var/lib/samba/private \
		      --with-lockdir=/var/cache/samba \
		      --with-logfilebase=/var/log/samba \

I currently have some problems with "samba-tool domain join" but I think
that has nothing to do with samba but with the fact that for the domain
in question there are no proper DNS entries:

$ samba-tool domain join swt-pool.test.lab DC -Uadministrator --realm=SWT-POOL.TEST.LAB
Finding a writeable DC for domain 'swt-pool.test.lab'
ERROR(exception): uncaught exception - Failed to find a writeable DC for domain 'swt-pool.test.lab'
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/", line 141, in _run
    return*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/", line 110, in run
  File "/usr/lib64/python2.7/site-packages/samba/", line 585, in join_DC
    ctx = dc_join(server, creds, lp, site, netbios_name, targetdir, domain)
  File "/usr/lib64/python2.7/site-packages/samba/", line 63, in __init__
    ctx.server = ctx.find_dc(domain)
  File "/usr/lib64/python2.7/site-packages/samba/", line 173, in find_dc
    raise Exception("Failed to find a writeable DC for domain '%s'" % domain)


More information about the samba-technical mailing list