6.1 Actions

Individual actions are detailed below.

6.1.1 AssignPolicy

Description

The AssignPolicy operation assigns a named policy to a given object in eDirectory.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

AssignPolicy

cccFSFactoryActionOption (IN)

Policy Name

Specifies unique policy name.

cccFSFactoryActionTarget (IN)

FDN of policy assignment

This object will be added to the list of associations for the named policy.

cccFSFactoryActionResult (OUT)

Success

<Error Message>

Return Values

The cccFSFactoryActionResult attribute is set to Success if successful or an error message otherwise.

Notes

  • The trustee FDN specified for the cccFSFactoryActionTarget attribute may be entered in either typeful or typeless FDN format such as bob.hq.org or CN=bob.OU=hq.O=org, or in LDAP format such as cn=bob,ou=hq,o=org.

  • The policy name must match an existing policy in the configured system, however the policy name does not need to be a case exact match.

  • Policies will only be successfully assigned if the policy type is allowed to be assigned to the specified object type. Allowed assignment types are as follows:

Policy Type

Object Type (Class)

Notes

User Policy

  • Container: Organization, Organizational Unit, Domain, Locality

  • Group

  • User

Collaborative Group Policy

  • Container: Organization, Organizational Unit, Domain, Locality

  • Group

Not valid for user objects

Collaborative Container Policy

  • Container: Organization, Organizational Unit, Domain, Locality

Not valid for user or group objects

User Auxiliary Policy

Not valid

Currently, auxiliary policies may only be assigned to primary policies, not to objects in the directory service.

Example

The following LDIF file shows how to assign policy UserPolicy1 to the container hq.org.

#Example LDIF for AssignPolicy Action Object
version: 1
dn: cn=assignpolicy,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionOperation: AssignPolicy
cccFSFactoryActionOption: UserPolicy1
cccFSFactoryActionTarget: hq.org
cccFSFactoryActionTrigger: Ready

6.1.2 ClearTrustee

Description

The ClearTrustee operation removes the specified trustee from the designated path.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

ClearTrustee

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the directory in SYN_PATH format.

cccFSFactoryActionTarget (IN)

FDN of the trustee to remove

This user is removed as a trustee of Path1.

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

The cccFSFactoryActionResult attribute is set to Success if it is successful; otherwise, an error message displays.

NOTE:The trustee FDN specified for the cccFSFactoryActionTarget attribute should be entered as a typeless, dotted, fully distinguished name such as bob.hq.org.

Example

The following LDIF file shows how to remove user1.hq.org as a trustee of Server1/Vol1:path1/subpath1.

#Example LDIF for ClearTrustee Action Object
version: 1
dn: cn=cleartrusteetest,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org#
 0#/path1/subpath1
cccFSFactoryActionOperation: ClearTrustee
cccFSFactoryActionTarget: user1.hq.org
cccFSFactoryActionTrigger: Ready

6.1.3 CopyDir

Description

The CopyDir operation recursively copies the contents from Path1 to Path2.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

CopyDir

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the directory in SYN_PATH format.

cccFSFactoryActionTarget (IN)

VolumeDN#0#/subpath

This user is removed as a trustee of Path1.

cccFSFactoryActionOption

<Option> <ParentPaths>1</ParentPaths></Option>

ParentPaths :0 – (or missing tag) Do not create the target path if any parent paths are missing. 1 – Create any missing parent paths as well as the target path

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

cccFSFactoryActionResult is set to Success if it is successful; otherwise, an error message displays.

Notes

  • This action generates a Generic Copy Data event which is eligible for Agent delegation.

  • CopyDir only works with contents under a specified directory, and not with single files. Use the CopyFile action to handle an individual file.

Example

The following LDIF shows how to perform a copy of the entire contents of Server1/Vol1:path1/subpath1 to Server2/Data:users/bob.

#Example LDIF for CopyDir Action Object
version: 1
dn: cn=copydirtest,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org#
 0#/path1/subpath1
cccFSFactoryActionPath2: cn=SERVER2_DATA,ou=servers,o=org#
 0#/users/bob
cccFSFactoryActionOption: <Option><ParentPaths>1</Parent
 Paths></Option>
cccFSFactoryActionOperation: CopyDir
cccFSFactoryActionTrigger: Ready

6.1.4 CopyFile

Description

The CopyFile operation copies the contents of a single file from Path1 to Path2.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

CopyFile

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath/file

Path of source file in SYN_PATH format

cccFSFactoryActionPath2 (IN)

VolumeDN#0#/subpath/file

Path of target file in SYN_PATH format

cccFSFactoryActionOption

<Option> <SourceObject/> <TargetObject/></Option>

ParentPaths :0 – (or missing tag) do not create the target file if any parent paths are missing 1 – create any missing parent paths

Overwrite:0 – do not overwrite1 – (or missing tag) overwrite an existing file2 – overwrite file only if newer3 – overwrite file if different size4 – overwrite file if newer and different size

cccFSFactoryActionResult (OUT)

<Error Message>

Success

 

Return Values

cccFSFactoryActionResult is set to Success if successful or an error message otherwise.

Notes

  • This action generates a Generic Copy Data event which is eligible for Agent delegation.

  • CopyFile requires that the target path include the target file name, not just the target parent folder.

Example

The following LDIF shows how to perform a copy of the contents of file Server1/Vol1:path1/subpath1/file-a.txt to Server2/Data:users/bob/file-b.txt

#Example LDIF for CopyFile Action Object
version: 1
dn: cn=copyfiletest,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org#
 0#/path1/subpath1/file-a.txt
cccFSFactoryActionPath2: cn=SERVER2_DATA,ou=servers,o=org#
 0#/users/bob/file-b.txt
cccFSFactoryActionOption: <Option><ParentPaths>1</Parent
 Paths><Overwrite>1</Overwrite></Option>
cccFSFactoryActionOperation: CopyFile
cccFSFactoryActionTrigger: Ready

6.1.5 CopyTrustee

Description

The CopyTrustee operation copies the rights of a specified trustee for Path1 to a specified trustee for Path2.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

CopyTrustee

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the source entry in SYN_PATH format.

cccFSFactoryActionPath2 (IN)

VolumeDN#0#/subpath

Path of the target entry in SYN_PATH format.

cccFSFactoryActionOption (IN)

<Option> <SourceObject/> <TargetObject/></Option>

SourceObject: FDN of the trustee for path1.TargetObject: FDN of the trustee for path2.

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

The cccFSFactoryActionResult attribute is set to Success if it is successful; otherwise, an error message displays.

NOTE:The FDNs specified for the <SourceObject> and <TargetObject> tags should be entered as a typeless, dotted, fully distinguished name such as bob.hq.org.

Example

The following LDIF shows how to perform a copy the trustee assignment of user1 on Server1/Vol1:path1/subpath1 and assign those same rights to bob on Server2/Data:users/bob.

#Example LDIF for CopyTrustee Action Object
version: 1
dn: cn=copytrustee,ou=ActionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org#
 0#/path1/subpath1
cccFSFactoryActionPath2: cn=SERVER2_DATA,ou=servers,o=org#
 0#/users/bob
cccFSFactoryActionOption: <Option><SourceObject>user1.user
 s.org</SourceObject><TargetObject>bob.hq.org</TargetObject
 ></Option>
cccFSFactoryActionTrigger: Ready

6.1.6 CreateDir

Description

The CreateDir operation creates a directory at the specified path.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

CreateDir

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the source entry in SYN_PATH format.

cccFSFactoryActionOption

<Option> <ParentPaths>1</ParentPaths></Option>

ParentPaths:0 – (or missing tag) Do not create the target path if any parent paths are missing. 1 – Create any missing parent paths as well as the target path.

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

cccFSFactoryActionResult is set to Success if it is successful; otherwise, an error message displays.

NOTE:Even though the complete path is specified in cccFSFactoryActionPath1, all parent paths of the newly specified directory must exist, or the function fails.

Example

The following LDIF example shows how to create subpath1 underneath Server1/Vol1:path1.

#Example LDIF for CreateDir Action Object
version: 1
dn: cn=createdirtest,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,o=org#0#/path1/
 subpath1
cccFSFactoryActionOption: <Option><ParentPaths>1</Parent
 Paths></Option>
cccFSFactoryActionOperation: CreateDir
cccFSFactoryActionTrigger: Ready

6.1.7 DeleteDir

Description

The DeleteDir operation deletes a directory at the specified path.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

DeleteDir

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of directory in SYN_PATH format

cccFSFactoryActionOption

<Option> <Level>0</Level> <Recursive>0</Recursive></Option>

Level:0 – safe. No attribute or rights overrides are performed. This is the default if no Level tag is available2 – (or tag not available) intermediate. Overrides any read-only / read-inhibit attributes3 – aggressive. Overrides any read-only / read-inhibit attributes; grants explicit rights, takes ownership if needed to override rights filters or other inherited rights issuesRecursive:0 – Only delete contents of the immediate folder1 – (or tag not available) Delete contents of the immediate folder and all subfolders

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

cccFSFactoryActionResult is set to Success if it is successful; otherwise, an error message displays.

Notes

  • The specified path must point to a directory, not a file.

  • Lack of an Option tag defaults to recursive mode with intermediate level of aggression for delete.

Example

The following LDIF example shows how to delete the directory Server1/Vol1:path1/subpath1.

#Example LDIF for DeleteDir Action Object
version: 1
dn: cn=deletetest,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,o=org#0#/path1/subpath
cccFSFactoryActionOperation: DeleteDir
cccFSFactoryActionOption: <Option><Level>3</Level><Recursive>
 0</Recursive></Option>
cccFSFactoryActionTrigger: Ready

6.1.8 DeleteFile

Description

The DeleteFile operation deletes a directory at the specified path.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

DeleteFile

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath/file

Path of file in SYN_PATH format

cccFSFactoryActionOption

<Option> <Level>0</Level></Option>

0 – 1 safe. No attribute or rights overrides are performed. This is the default if no Level tag is available2 – (or not tag available) intermediate. Overrides any read-only / read-inhibit attributes3 – aggressive. Overrides any read-only / read-inhibit attributes; grants explicit rights, takes ownership if needed to override rights filters or other inherited rights issues

cccFSFactoryActionResult (OUT)

<Success>

<Error Message>

Return Values

cccFSFactoryActionResult is set to Success if successful or an error message otherwise.

NOTE:The specified path must point to a single file. File globbing or wildcards are not currently supported at this time.

Example

The following LDIF example shows how to delete the file Server1/Vol1:path1/subpath1/file-a.txt

#Example LDIF for DeleteFile Action Object
version: 1
dn: cn=deletefiletest,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,o=org#0#/path1/
 subpath1/file-a.txt
cccFSFactoryActionOperation: DeleteFile
cccFSFactoryActionOption: <Option><Level>3</Level></Option>
cccFSFactoryActionTrigger: Ready

6.1.9 Rename

Description

The Rename operation renames an existing directory entry (file or folder).

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

Rename

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the directory in SYN_PATH format.

cccFSFactoryActionTarget

newpath

New file or directory name.

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

cccFSFactoryActionResult is set to Success if it is successful; otherwise, an error message displays.

WARNING:Currently all Rename actions override (ignore) any Rename Inhibit / Delete Inhibit flags that would normally prevent renaming a file or directory.

Example

The following LDIF file shows how to rename the file at Server1/Vol1:path1/file1 to file2.

#Example LDIF for Rename Action Object
version: 1
dn: cn=renametest,ou=ActionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org
 #0#path1/file1
cccFSFactoryActionTarget: file2
cccFSFactoryActionOperation: Rename
cccFSFactoryActionTrigger: Ready

6.1.10 SetFlags

Description

The SetFlags operation sets the file system flags for Path1 to the specified values.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

SetFlags

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the directory in SYN_PATH format.

cccFSFactoryActionOption (IN)

RiDiHiArPiIcDcRo

String of flags to set.

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

The cccFSFactoryActionResult attribute is set to Success if it is successful: otherwise, an error displays.

Notes

  • Currently, this action only overwrites the current flags. It does not add to existing flags that might already be set, but instead sets the flags to what has been explicitly listed in the cccFSFactoryActionOption attribute. Any flags not specified are cleared.

  • The following flags can be set:

    • Di – delete inhibit

    • Ri – rename inhibit

    • Hi – hidden

    • Ar – archive

    • Pi – purge immediate

    • Ic – compress immediate

    • Dc – do not compress

    • Ro – read only

  • Flag options are case sensitive

Example

The following LDIF file shows how to set the rename inhibit and delete inhibit flags for the path Server1/Vol1:path1.

#Example LDIF for SetFlags Action Object
version: 1
dn: cn=setflagstest,ou=ActionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org
 #0#path1
cccFSFactoryActionOption: RiDi
cccFSFactoryActionOperation: SetFlags
cccFSFactoryActionTrigger: Ready

6.1.11 SetOwner

Description

The SetOwner operation sets the specified eDirectory object as the owner of Path1.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

SetOwner

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the directory in SYN_PATH format.

cccFSFactoryActionTarget (IN)

FDN of new owner.

 

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

The cccFSFactoryActionResult attribute is set to Success if it is successful; otherwise, an error message displays.

NOTE:The owner FDN specified for the cccFSFactoryActionTarget attribute should be entered as a typeless, dotted, fully distinguished name such as bob.hq.org.

Example

The following LDIF file shows how to set bob.hq.org as the owner for the path Server1/Vol1:path1.

#Example LDIF for SetFlags Action Object
version: 1
dn: cn=setownertest,ou=ActionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org
 #0#path1
cccFSFactoryActionTarget: bob.hq.org
cccFSFactoryActionOperation: SetOwner
cccFSFactoryActionTrigger: Ready

6.1.12 SetQuota

Description

The SetQuota operation is used to set, add, subtract, or clear a directory quota for a given target path.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

SetQuota

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the directory in SYN_PATH format.

cccFSFactoryActionOption (IN)

<Option>
  <SubCmd>#</SubCmd>
  <Quantity>##</Quantity>
</Option>

SubCmd: 0 – Clear quota 1 – Set quota 2 – Add to quota 3 – Subtract from quota

Quantity: Integer representing quota value in to set, add, or remove in megabytes.

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

Return Values

The cccFSFactoryActionResult attribute is set to Success if it is successful; otherwise, an error message displays.

NOTE:Depending on the initial quota setting of the target path, the value of <SubCmd> produces the results in the table below.

<SubCmd>

No Initial Quota (Unlimited)

Initial Quota of 10 MB

Initial Quota of 0 MB (Locked Out)

0 (clear quota)

No quota (unlimited)

No quota (unlimited)

No quota (unlimited)

1 (set quota)

Set to specified <Quantity>

Set to specified <Quantity>

Set to specified <Quantity>

2 (add quota)

No quota (unlimited)

Set to <Quantity> + 10

Set to 10 MB

3 (subtract quota)

No quota (unlimited)

Set to 10 - <Quantity>

if result < = 0, then quota set to 0 MB (Locked Out)

Left as 0 MB (Locked Out)

If <SubCmd> is set to any value other than 0, 1, 2, or 3, the operation fails and cccFSFactoryActionResult is set to the error message.

Example

The following LDIF file shows how to set a directory quota of 500 MB on the path Server1/Vol1:path1/subpath1.

#Example LDIF for SetQuota Action Object
version: 1
dn: cn=setquotatest,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org#
 0#/path1/subpath1
cccFSFactoryActionOperation: SetQuota
cccFSFactoryActionOption: <Option><SubCmd>1</SubCmd><Quanti
 ty>500</Quantity></Option>
cccFSFactoryActionTrigger: Ready

6.1.13 SetTrustee

Description

The SetTrustee operation sets the specified rights for the trustee to the designated path.

Parameters

Attribute

Value

Details

cccFSFactoryActionOperation (IN)

SetTrustee

 

cccFSFactoryActionPath1 (IN)

VolumeDN#0#/subpath

Path of the directory in SYN_PATH format.

cccFSFactoryActionOption (IN)

RWCEMFA

Specify initials for file system rights.

cccFSFactoryActionTarget (IN)

FDN of the new trustee

This user will be assigned the rights listed in Option to Path1.

cccFSFactoryActionResult (OUT)

Success

<Error Message>

 

cccFSFactoryActionTrigger

Ready

Needed to activate the action object.

Return Values

The cccFSFactoryActionResult attribute is set to Success if it is successful; otherwise, or an error message displays.

Notes

  • The trustee FDN specified for the cccFSFactoryActionTarget attribute should be entered as a typeless, dotted, fully distinguished name such as bob.hq.org.

  • The rights are a simple text field with each letter representing a specified access control:

    • R – Read

    • W – Write

    • C – Create

    • E – Crase

    • M – Modify

    • F – File scan

    • A – Access control

  • SetTrustee overwrites any previous rights a trustee might have had to the specified path.

Example

The following LDIF file shows how to set user1.hq.org as a trustee of Server1/Vol1:path1/subpath1 with read and file scan rights.

#Example LDIF for SetTrustee Action Object
version: 1
dn: cn=settrusteetest,ou=actionObjects,o=org
changetype: add
objectClass: cccFSFactoryAction
cccFSFactoryActionPath1: cn=SERVER1_VOL1,ou=resources,o=org#
 0#/path1/subpath1
cccFSFactoryActionOperation: SetTrustee
cccFSFactoryActionOption: RF
cccFSFactoryActionTarget: user1.hq.org
cccFSFactoryActionTrigger: Ready