[Samba] error with provisionsing
Eric J. Stewart
eric_stewart at elanco.org
Fri Feb 3 08:10:47 MST 2012
I found the samba4 HOW-TO on the wiki and I have followed it to using Ubuntu server versions 11.10 and 10.04. I have been unsuccessful at step 4 running the provision script. I have run the following commands to get to get to this point:
$ sudo git clone git://git.samba.org/samba.git samba-master; cd samba-master
$ sudo apt-get install build-essential libattr1-dev libblkid-dev libgnutls-dev libreadline5-dev python-dev autoconf python-dnspython gdb pkg-config bind9utils libpopt-dev
When this command was run on 11.10 I received an error that the package libreadline5-dev was not found. As an alternative the libreadline-gplv2-dev or lib64readline-gplv2-dev were suggested, I chose the libreadline-gplv2-dev, because it was a 32 bit install, as the replacement.
$ sudo ./configure.developer
$ sudo make
$ sudo make install
$ sudo ./source4/setup/provision --realm=home.com --domain=HOME --adminpass=P at ssw0rd --server-role='domain controller'
The following is the output of I am receiving on both editions.
bin/tdbbackup: /home/administrator/samba-master/bin/shared/private/libtdb.so: version `SAMBA_4.0.0ALPHA18_DEVELOPERBUILD' not found (required by bin/tdbbackup)
Failed to setup database for BIND, AD based DNS cannot be used
Traceback (most recent call last):
File "./source4/setup/provision", line 256, in <module>
useeadb=eadb, next_rid=opts.next_rid, lp=lp)
File "bin/python/samba/provision/__init__.py", line 1757, in provision
am_rodc=am_rodc, lp=lp)
File "bin/python/samba/provision/__init__.py", line 1491, in provision_fill
targetdir=targetdir, site=DEFAULTSITE)
File "bin/python/samba/provision/sambadns.py", line 990, in setup_ad_dns
create_samdb_copy(samdb, logger, paths, names, domainsid, domainguid)
File "bin/python/samba/provision/sambadns.py", line 751, in create_samdb_copy
os.path.join(dns_dir, "sam.ldb"))
File "bin/python/samba/provision/sambadns.py", line 688, in tdb_copy
raise Exception("Error copying %s" % file1)
Exception: Error copying /usr/local/samba/private/sam.ldb
I am fairly new to working with samba and I do not know where to look to get this working and any suggestions would be greatly appreciated.
Eric
More information about the samba
mailing list