Samba 4 provision error in recent git

Kev Latimer klatimer at
Wed Feb 29 02:24:35 MST 2012

On 28/02/2012 01:00, William Brown wrote:
>>> root at mydc:/# /usr/local/samba/sbin/**provision --realm=mydomain.local
>>> --domain=MYDOMAIN--adminpass=**password --server-role=dc
>>> --dns-backend=BIND9_FLATFILE
>>> Traceback (most recent call last):
>>> File "/usr/local/samba/sbin/**provision", line 262, in<module>
>>>    useeadb=eadb, next_rid=opts.next_rid, lp=lp)
>>> File "/usr/local/samba/lib/python2.**6/site-packages/samba/**provision/",
>>> line 1663, in provision
>>>    eadb=useeadb, lp=lp, server_services=server_**services)
>>> File "/usr/local/samba/lib/python2.**6/site-packages/samba/**provision/",
>>> line 648, in make_smbconf
>>>    shares["sysvol"] = os.path.join(global_settings["**state directory"],
>>> KeyError: 'state directory'
> Can confirm I am getting the same error. Seems to pass make quicktest however (which is in itself a danger)
> Sincerely,
> William Brown
Checked out git this morning (4.0.0alpha19-GIT-65d42ab) and same error 
still there.  Anyone know a workaround?  Surely people have been 
provisioning new Samba4's this week :-P

I see there's a similar bug in Bugzilla 
( - is it worth me 
filing a new bug as it's a new provision and my error is slightly different?



Kevin Latimer
_Network Manager_

*Tolent Construction Ltd*
Ravensworth House
5th Avenue Business Park, Team Valley
Gateshead, Tyne & Wear, NE11 0HF

Tel: +44 (0)191 4870505
Fax: +44 (0)191 4872990

Website: <>

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 mailing list