This rule creates a department container in the destination data store, if one does not exist. Implement the rule on the Command Transformation policy in the driver.
There are two steps involved in using the predefined rules: creating a policy in the Command Transformation policy set, and importing the predefined rule. If you already have a Command Transformation policy that you want to add this rule to, skip to Importing the Predefined Rule.
Open the
for the driver you want to manage.Click the Command Transformation Policy object on the Publisher or Subscriber channel.
Click
.Name the policy, make sure to implement the policy with the Policy Builder, then click
.The Rule Builder is launched.
Continue with Section 6.1.2, Importing the Predefined Rule.
In the Rule Builder, click
.Select
.Click
.Select
.Click
.There is no information to change in the rules that is specific to your environment.
IMPORTANT:Make sure that the rules are listed in order. Part 1 must be executed before Part 2.
This rule is used when the destination location for an object does not exist. Instead of getting a veto because the object cannot be placed, this rule creates the container and places the object in the container.
Part 1 looks for any Add operation. When the Add operation occurs, two local variables are set. The first local variable is named target-container. The value of target-container is set to the destination DN. The second local variable is named does-target-exist. The value of does-target-exist is set to the destination attribute value of objectclass. The class is set to OrganizationalUnit. The DN of the OrganizationalUnit is set to the local variable of target-container.
Figure 6-1 Create Container
Part 2 checks to see if the local variable does-target-exist is available. It also checks to see if the value of the local variable does-target-exist is set to a blank value. If the value is blank, then an Organizational Unit object is created. The DN of the organizational unit is set to the value of the local variable target-container. It also adds the value for the OU attribute. The value of the OU attribute is set to the name of the new organizational unit, which is obtained by parsing the value of the local variable target-container.