Samba 4.20 Domain Controller in Jail Issues

I am trying to set up a Samba 4.20 Domain Controller in a jail (using bastille) and I have been searching far and wide and can't sort the below error out during the provision. I think it has something to do with the way the jail is using acls and I must be just missing something that I don't quite understand. Can someone point me in the right direction or maybe some documentation that can show me how to do this properly?

Note: bastille / jails are using zfs

# samba-tool domain provision --use-rfc2307 --interactive
...
Repacking database from v1 to v2 format (first record CN=ms-DS-Generation-Id,CN=Schema,CN=Configuration,DC=macer,DC=life)
Repack: re-packed 10000 records so far
Repacking database from v1 to v2 format (first record CN=nTDSSettings-Display,CN=408,CN=DisplaySpecifiers,CN=Configuration,DC=macer,DC=life)
Repacking database from v1 to v2 format (first record CN=6bcd5686-8314-11d6-977b-00c04f613221,CN=Operations,CN=DomainUpdates,CN=System,DC=macer,DC=life)
ERROR(<class 'NameError'>): uncaught exception - name 'targetdir' is not defined
File "/usr/local/lib/python3.11/site-packages/samba/netcmd/__init__.py", line 285, in _run
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/samba/netcmd/domain/provision.py", line 343, in run
result = provision(self.logger,
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/samba/provision/__init__.py", line 2363, in provision
provision_fill(samdb, secrets_ldb, logger, names, paths,
File "/usr/local/lib/python3.11/site-packages/samba/provision/__init__.py", line 1972, in provision_fill
if targetdir and smbd.have_nfsv4_acls() and smbd.has_nfsv4_acls(targetdir):
^^^^^^^^^
 
There seems to be a mismerge of samba 4.20.7.
The official samba 4.20.7's python/samba/provision/__init__.py does not have samba420-4.20.7_11's lines 1972-1973:
Code:
   if targetdir and smbd.have_nfsv4_acls() and smbd.has_nfsv4_a   1972 cls(targetdir):
           smbd.set_nfsv4_defaults()
These lines should have been deleted.
I will report to FreeBSD bugzilla.
 
Thanks. I wound up using the samba419 package (which works). I'll upgrade after the pkg has been udpated.
 
Back
Top