Bug 10101 - If the sysvol files don't exist when sysvolreset is run, samba-tool throws and unhandled exception.
Summary: If the sysvol files don't exist when sysvolreset is run, samba-tool throws an...
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.0.0
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-20 22:54 UTC by David
Modified: 2021-12-08 01:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2013-08-20 22:54:03 UTC
To reproduce this, put the wrong path for the sysvol into the smb.conf. Then try to run samba-tool ntacl sysvolreset. You will get an unhandled exception.

[root@dtgc-kdc2 ~]# samba-tool ntacl sysvolreset
open: error=2 (No such file or directory)
ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error')
  File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/samba/netcmd/ntacl.py", line 214, in run
    lp, use_ntvfs=use_ntvfs)
  File "/usr/lib64/python2.6/site-packages/samba/provision/__init__.py", line 1574, in setsysvolacl
    set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, use_ntvfs, passdb=s4_passdb)
  File "/usr/lib64/python2.6/site-packages/samba/provision/__init__.py", line 1498, in set_gpos_acl
    use_ntvfs=use_ntvfs, skip_invalid_chown=True, passdb=passdb)
  File "/usr/lib64/python2.6/site-packages/samba/ntacls.py", line 154, in setntacl
    smbd.set_nt_acl(file, security.SECINFO_OWNER | security.SECINFO_GROUP | security.SECINFO_DACL | security.SECINFO_SACL, sd)
Comment 1 Björn Jacke 2021-12-08 01:16:06 UTC
works as designed :)