On FreeBSD-12.1p7 running Samba-4.10.15 I have a working test AD domain. While
samba_server is confirmed stopped the 'samba-tool domain backup offline'
command gives the following error:
[root at smb4-1c-testfmso ~ (master)]# hostname
smb4-1.brockley.harte-lyne.ca
[root at smb4-1c-testfmso ~ (master)]# samba-tool domain backup offline
--targetdir=/tmp
ERROR(<class 'IndexError'>): uncaught exception - list index out
of range
File
"/usr/local/lib/python3.7/site-packages/samba/netcmd/__init__.py",
line
185, in _run
return self.run(*args, **kwargs)
File
"/usr/local/lib/python3.7/site-packages/samba/netcmd/domain_backup.py",
line 1019, in run
sid = get_sid_for_restore(samdb)
File
"/usr/local/lib/python3.7/site-packages/samba/netcmd/domain_backup.py",
line 81, in get_sid_for_restore
rid = int(res[0].get('rIDNextRID')[0])
smb.conf contains:
# Global parameters
[global]
netbios name = SMB4-1
realm = BROCKLEY.HARTE-LYNE.CA
server role = active directory domain controller
# use 'samba-tool testparm -v | grep services' to list active services
workgroup = BROCKLEY
idmap_ldb:use rfc2307 = yes
vfs objects = dfs_samba4 zfsacl
# remove nbt as this causes a fatal startup error
server services = -nbt
# Eliminate ipv6 errors
bind interfaces only = Yes
interfaces = localhost smb4-1
# DNS
dns forwarder = 216.185.71.33 216.185.71.34
# Note diff: sbin vs. bin and _ vs. - and dns vs. ns
dns update command = /usr/local/sbin/samba_dnsupdate
## samba_dnsupdate insists on finding rndc
rndc command = /usr/bin/true
## For secure dns dynamic updates use these (but secure does not work):
# 1 nsupdate command = /usr/local/bin/samba-nsupdate -g
# 1 allow dns updates = secure only
## For insecure dynamic updates use these settings:
nsupdate command = /usr/local/bin/samba-nsupdate
allow dns updates = nonsecure
# Logging
log level = 1
#log file = /var/log/samba4/smbd.log.%m
log file = /var/log/samba4/smbd.log
max log size = 10000
debug timestamp = yes
# Disable printing
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
[sysvol]
path = /var/db/samba4/sysvol
read only = No
[netlogon]
path = /var/db/samba4/sysvol/brockley.harte-lyne.ca/scripts
read only = No
[PROFILES]
comment = Users profiles
path = /var/samba4/BROCKLEY/PROFILES/
browseable = No
read only = No
force create mode = 0600
force directory mode = 0700
csc policy = disable
store dos attributes = yes
vfs objects = dfs_samba4 zfsacl
[USERS]
comment = Users folder redirection
path = /var/samba4/BROCKLEY/USERS/
browseable = No
read only = No
force create mode = 0600
force directory mode = 0700
csc policy = disable
store dos attributes = yes
vfs objects = dfs_samba4 zfsacl
Is this problem a configuration error or a bug?
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Unencrypted messages have no legal claim to privacy
Do NOT open attachments nor follow links sent by e-Mail
James B. Byrne mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3