Bug 246372 - net/samba410: 4.10.15 Unable to use samba-tool to check or reset sysvol acls
Summary: net/samba410: 4.10.15 Unable to use samba-tool to check or reset sysvol acls
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-11 14:38 UTC by James B. Byrne
Modified: 2020-07-09 19:27 UTC (History)
1 user (show)

See Also:
linimon: maintainer-feedback? (timur)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James B. Byrne 2020-05-11 14:38:06 UTC
Iocage thick jail jail running FreeBSD-12.1p4 on ZFS with Samba-4.10.15.  Ports updated to latest.

# samba-tool ntacl sysvolreset
set_nt_acl_no_snum: fset_nt_acl returned NT_STATUS_INVALID_PARAMETER.
ERROR(runtime): uncaught exception - (3221225485, 'An invalid parameter was passed to a service or function.')
  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/ntacl.py", line 283, in run
    lp, use_ntvfs=use_ntvfs)
  File "/usr/local/lib/python3.7/site-packages/samba/provision/__init__.py", line 1735, in setsysvolacl
    _setntacl(sysvol)
  File "/usr/local/lib/python3.7/site-packages/samba/provision/__init__.py", line 1732, in _setntacl
    service=SYSVOL_SERVICE, session_info=session_info)
  File "/usr/local/lib/python3.7/site-packages/samba/ntacls.py", line 232, in setntacl
    service=service, session_info=session_info)

Similar results obtained from samba-tool ntacl sysvolcheck

# samba-tool ntacl sysvolreset
set_nt_acl_no_snum: fset_nt_acl returned NT_STATUS_INVALID_PARAMETER.
ERROR(runtime): uncaught exception - (3221225485, 'An invalid parameter was passed to a service or function.')
  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/ntacl.py", line 283, in run
    lp, use_ntvfs=use_ntvfs)
Comment 1 James B. Byrne 2020-07-09 19:27:24 UTC
I have encountered exactly the same error when attempting to replicate DC1:/var/db/samba4/sysvol to DC2:/var/db/samba4/sysvol with both DCs running packeded samba-4.10.15 in iocage thick jails with FreeBSd-12.1p6.