Bug 288405 - net/samba420: ntacl sysvolcheck and ntacl sysvolreset both fail with OSError
Summary: net/samba420: ntacl sysvolcheck and ntacl sysvolreset both fail with OSError
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Samba Team (mail alias)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-23 14:16 UTC by Dean E. Weimer
Modified: 2025-07-24 05:24 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (samba)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean E. Weimer 2025-07-23 14:16:41 UTC
I was having problems with an upgraded Domain controller and backup domain controller not allowing windows clients access to group policy objects. After investigation I found out that the ACL part appears to be broken. I was running on ZFS, but switched my backup domain controller to UFS files system for sysvol and that didn't change result.

Running FreeBSD 14.3-p1

root@samba:/usr/local/etc # samba-tool ntacl sysvolcheck -d 3
lpcfg_load: refreshing parameters from /usr/local/etc/smb4.conf
Initialising global parameters
lp_load_ex: refreshing parameters
Processing section "[global]"
Processing section "[sysvol]"
Processing section "[netlogon]"
ldb_wrap open of idmap.ldb
ERROR(<class 'OSError'>): Could not access /var/db/samba4/sysvol/dweimer.me: Invalid argument - [Errno 22] Invalid argument: '/var/db/samba4/sysvol/dweimer.me'
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/ntacl.py", line 484, in run
    provision.checksysvolacl(samdb, netlogon, sysvol,
  File "/usr/local/lib/python3.11/site-packages/samba/provision/__init__.py", line 1881, in checksysvolacl
    fsacl = getntacl(lp, dir_path, session_info, direct_db_access=direct_db_access, service=SYSVOL_SERVICE)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/samba/ntacls.py", line 113, in getntacl
    attribute = samba.xattr_native.wrap_getxattr(file,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^