I have migrated my old samba 3.6 NT domain to samba 4.2.2 with samba-tool classicupgrade. After I run sysvolcheck and see error:
# samba-tool ntacl sysvolcheck
ERROR(<type 'exceptions.TypeError'>): uncaught exception - (87, 'Attribute not found')
File "/usr/local/lib/python2.7/site-packages/samba/netcmd/init.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line 249, in run
File "/usr/local/lib/python2.7/site-packages/samba/provision/init.py", line 1717, in checksysvolacl
fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE)
File "/usr/local/lib/python2.7/site-packages/samba/ntacls.py", line 73, in getntacl
I see too few records in idmap.ldb:
Number of records: 12
Because of this, sysvolreset doesn't work and I cannot assign properly fs ACL to sysvol. This looks like a bug.
I've made numerous "classicupgrade" migrations and never ran into such a problem. Maybe you needed to start samba at least once.
*** Bug 9524 has been marked as a duplicate of this bug. ***