Samba 4 provision error in recent git
klatimer at tolent.co.uk
Mon Feb 27 05:33:14 MST 2012
Did a dummy run of a production samba 4 install this weekend using a git
pull from Saturday morning (didn't make a note of the version though but
about 10am GMT) and although I hit some issues with running bind_dlz
alongside our current DNS I had 6 geographically dispersed (over WAN)
samba 4 DC's playing nicely and replicating happily. Huge kudos to the
team for what is a fantastic achievement so far.
Decided to to have a play using bind9 flat file DNS in a test
environment this morning, by wiping and re-provisioning the initial DC.
As always, did a git pull and recompile and then ran a provision (as it
happens, I've only just noticed the HOWTO refers to provision in
/usr/local/samba/sbin rather than /usr/src/samba-master/source4/setup
now, although I tried both) and got the following result:
root at mydc:/# /usr/local/samba/sbin/provision --realm=mydomain.local
Traceback (most recent call last):
File "/usr/local/samba/sbin/provision", line 262, in <module>
useeadb=eadb, next_rid=opts.next_rid, lp=lp)
line 1663, in provision
eadb=useeadb, lp=lp, server_services=server_services)
line 648, in make_smbconf
shares["sysvol"] = os.path.join(global_settings["state directory"],
KeyError: 'state directory'
I also tried it without the --dns-backend option but same result.
Version I have is "Version 4.0.0alpha19-GIT-b6fcac6".
I'm going to hazard a guess it's expecting an option regarding where to
put sysvol and there's no default in this version of provision but I
can't seem to spot how to pass it to provision. My python is about as
good as my Mandarin Chinese I'm afraid, so I'm fumbling a bit.... Any
*Tolent Construction Ltd*
5th Avenue Business Park, Team Valley
Gateshead, Tyne & Wear, NE11 0HF
Tel: +44 (0)191 4870505
Fax: +44 (0)191 4872990
Website: www.tolent.co.uk <http://www.tolent.co.uk>
This message is intended only for the use of the person(s) ('the
intended recipient(s) ') to whom it is addressed.
It may contain information which is privileged and confidential within
the meaning of applicable law.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately.
*The views expressed in this communication may not necessarily be the
views held by the Company.*
Registered office: Ravensworth House, 5th Avenue Business Park, Team
Valley, Gateshead, Tyne & Wear, NE11 0HF.
Registered in England No. 2450574
*Please note Tolent Plc monitors email sent or received. Further
communication will signify your consent to this.*
More information about the samba-technical