Bug 12031 - samba-tool ntacl sysvolcheck "argument 1 must be string, not None"
Summary: samba-tool ntacl sysvolcheck "argument 1 must be string, not None"
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.3.9
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-21 08:45 UTC by David
Modified: 2021-12-07 16:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2016-07-21 08:45:49 UTC
This is what I get when I run sysvolcheck: 

root@dc01:/var/lib/samba/sysvol/ad.esp-daniel.org/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/USER/Documents & Settings# samba-tool ntacl sysvolcheck
ERROR(<type 'exceptions.TypeError'>): uncaught exception - argument 1 must be string, not None
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 249, in run
    lp)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1724, 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 73, in getntacl
    xattr.XATTR_NTACL_NAME)

This happens even after running sysvolreset (which seems to work fine).
Comment 1 Björn Jacke 2021-12-07 16:20:09 UTC
this is not an issue with current samba versions