def enable_inheritance(path, objectType, clear=False):
 dc = daclConstants()
 objectType = dc.getObjectTypeBit(objectType)
 path = dc.processPath(path, objectType)
 return _set_dacl_inheritance(path, objectType, True, None, clear)

def enable_inheritance ( path , objectType , clear = False ) : dc = daclConstants ( ) objectType = dc . getObjectTypeBit ( objectType ) path = dc . processPath ( path , objectType ) return _set_dacl_inheritance ( path , objectType , True , None , clear )
enable/disable inheritance on an object args: path: the path to the object objecttype: the type of object clear: true will remove non-inherited aces from the acl returns : a dictionary containing the results cli example: .