Success: samba4 on gentoo
Dirk Gouders
gouders at et.bocholt.fh-gelsenkirchen.de
Wed Sep 7 08:52:34 MDT 2011
> On Wed, 07 Sep 2011 15:32:10 +0200, Dirk Gouders
> <gouders at et.bocholt.fh-gelsenkirchen.de> 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 \
--with-piddir=/var/run/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/__init__.py", line 141, in _run
return self.run(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", line 110, in run
domain_critical_only=domain_critical_only)
File "/usr/lib64/python2.7/site-packages/samba/join.py", line 585, in join_DC
ctx = dc_join(server, creds, lp, site, netbios_name, targetdir, domain)
File "/usr/lib64/python2.7/site-packages/samba/join.py", line 63, in __init__
ctx.server = ctx.find_dc(domain)
File "/usr/lib64/python2.7/site-packages/samba/join.py", line 173, in find_dc
raise Exception("Failed to find a writeable DC for domain '%s'" % domain)
Dirk
More information about the samba-technical
mailing list