samba4 provision script fails

Josef pepus at
Thu Dec 8 16:37:02 MST 2011

     I have compiled samba4 from GIT on my Debian squeeze. The provision 
script fails, if the domain name contains -. It's probably a bug as it 
cannot find filename with -.

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/", line 1787, in provision
     am_rodc=am_rodc, lp=lp)
   File "bin/python/samba/provision/", line 1526, in 
     targetdir=targetdir, site=DEFAULTSITE)
   File "bin/python/samba/provision/", line 925, in setup_ad_dns
     create_samdb_copy(logger, paths, names, domainsid, domainguid)
   File "bin/python/samba/provision/", line 649, in 
     os.path.join(dns_samldb_dir, configpart_file))
   File "/usr/lib/python2.6/", line 50, in copyfile
     with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 


More information about the samba-technical mailing list