Univention Bugzilla – Bug 44876
New check `samba_tool_sysvolcheck.py`
Last modified: 2018-08-13 16:43:58 CEST
Created attachment 8974 [details] nt-diagnostic-sysvolcheck-421.patch Adds a new diagnostic check `samba_tool_sysvolcheck.py` which runs `samba-tool ntacl sysvolcheck`. We might want to merge this with bug #40605 into a more general `samba-tool` check.
Committed in r81640 - r81641 (advisory r81649).
Not sure if it's an error in "samba-tool ntacl sysvolcheck" or in this script. I get a traceback: `samba-tool ntacl sysvolcheck` meldet ein Problem mit den SYSVOL ACL Einträgen. STDOUT: ERROR(): uncaught exception - (61, 'No data available') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 270, in run lp) File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1732, in checksysvolacl fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE) File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", line 81, in getntacl xattr.XATTR_NTACL_NAME)
(In reply to Florian Best from comment #2) > Not sure if it's an error in "samba-tool ntacl sysvolcheck" or in this > script. I get a traceback: This is a problem with samba-tool. Could you provide some more details about your environment? Maybe we can add some explanation in certain cases?
You can have a look in my VM: 10.200.27.130
(In reply to Florian Best from comment #4) > You can have a look in my VM: 10.200.27.130 See bug #44305.
Ok, works
Re-opening as a sign that we first should fix Bug #44305 before releasing this to the public. Also I just thought that a "Fix it" button would be useful, which runs "samba-tool ntacl sysvolreset". We should check Bug #38217 for that first.
Implemented the `fix` in 45a3f09, YAML 2fface.
Works, awesome!
<http://errata.software-univention.de/ucs/4.2/166.html>