Bug 10101 - If the sysvol files don't exist when sysvolreset is run, samba-tool throws and unhandled exception.
If the sysvol files don't exist when sysvolreset is run, samba-tool throws an...
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: Tools
4.0.0
All Linux
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-20 22:54 UTC by David
Modified: 2013-08-20 22:54 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)