[Samba] Error in samba-tool dbcheck

Bruno Guerreiro bruno.guerreiro at ine.pt
Sun Feb 9 12:58:13 UTC 2020


Hello. 
We're in the process of migrating an old Samba3 domain to Samba4. 
Everything is (seem to be?) going ok in our test migration, but we're finding this issue when running samba-tool dbcheck --cross-ncs 

Checking 15131 objects 
ERROR(<class 'IndexError'>): uncaught exception - index out of range 
File "/usr/local/samba/lib/python3.6/site-packages/samba/netcmd/__init__.py", line 186, in _run 
return self.run(*args, **kwargs) 
File "/usr/local/samba/lib/python3.6/site-packages/samba/netcmd/dbcheck.py", line 170, in run 
controls=controls, attrs=attrs) 
File "/usr/local/samba/lib/python3.6/site-packages/samba/dbchecker.py", line 259, in check_database 
error_count += self.check_object(object.dn, attrs=attrs) 
File "/usr/local/samba/lib/python3.6/site-packages/samba/dbchecker.py", line 2435, in check_object 
elif obj[attrname][0][1] == b'\x00'[0] and obj[attrname][0][2] == b'\x00'[0] and obj[attrname][0][3] == b'\x00'[0] and obj[attrname][0][4] != b'\x00'[0] and obj[attrname][0][5] == b'\x00'[0]: 

We're running Ubuntu 18.04.3 LTS with samba 11.4.6. but this also happens with samba 11.4.0 
Any ideas? Is this normal or should we be looking for more errors? 

BRGDS, 
Bruno Guerreiro 

"Confidencialidade: Esta mensagem (e eventuais ficheiros anexos) é destinada exclusivamente às pessoas nela indicadas e tem natureza confidencial. Se receber esta mensagem por engano, por favor contacte o remetente e elimine a mensagem e ficheiros, sem tomar conhecimento do respectivo conteúdo e sem reproduzi-la ou divulgá-la.
12345
Confidentiality Warning: This e-mail message (and any attached files) is confidential and is intended solely for the use of the individual or entity to whom it is addressed. lf you are not the intended recipient of this message please notify the sender and delete and destroy all copies immediately."


More information about the samba mailing list