Lines 1710-1716
def checksysvolacl(samdb, netlogon, sysvol, domainsid, dnsdomain, domaindn,
|
Link Here
|
---|
|
1710 |
# Ensure we can read this directly, and via the smbd VFS |
1710 |
# Ensure we can read this directly, and via the smbd VFS |
1711 |
for direct_db_access in [True, False]: |
1711 |
for direct_db_access in [True, False]: |
1712 |
# Check the SYSVOL_ACL on the sysvol folder and subfolder (first level) |
1712 |
# Check the SYSVOL_ACL on the sysvol folder and subfolder (first level) |
1713 |
for dir_path in [os.path.join(sysvol, dnsdomain), netlogon]: |
1713 |
for dir_path in [os.path.join(sysvol, dnsdomain)]: |
1714 |
fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE) |
1714 |
fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE) |
1715 |
if fsacl is None: |
1715 |
if fsacl is None: |
1716 |
raise ProvisioningError('%s ACL on sysvol directory %s not found!' % (acl_type(direct_db_access), dir_path)) |
1716 |
raise ProvisioningError('%s ACL on sysvol directory %s not found!' % (acl_type(direct_db_access), dir_path)) |
1717 |
- |
|
|