I have been trying to create a rule to add group membership in AD on a
modify. There are no groups in eDir like them and Src DN & Dest DN are
not the same. The result of below rule show this:

"CN=BlattmanTeacher-GS,
OU=Groups,ou=Blattman,ou=,ou=school,ou=nisd,dc=nor thside,dc=isd,dc=tenet,
dc=edu".

I cannot figure out how to add a variable to the full context (ou=,). It
need to be variable (Elementary, Middle, High, Special). I cannot get it
from the Src-DN anywhere and I cannot figure out how to make it work. I
just need to to know the XML commands better. Thanks for your help. Rob

<rule>
<description>Modify teacher to default group (SUB)</description>
<conditions>
<and>
<if-src-dn op="in-subtree">nisd\Schools</if-src-dn>
<if-operation op="equal">modify</if-operation>
<if-class-name op="equal">User</if-class-name>
<if-attr name="Title" op="equal">teacher</if-attr>
</and>
</conditions>
<actions>
<do-set-local-variable name="schoolOU">
<arg-string>
<token-parse-dn length="1" start="-2">
<token-src-dn/>
</token-parse-dn>
</arg-string>
</do-set-local-variable>
<do-add-dest-attr-value class-name="Group" name="Member">
<arg-dn>
<token-text xml:space="preserve">CN=</token-text>
<token-local-variable name="schoolOU"/>
<token-text xml:space="preserve">Teacher-GS
</token-text>
<token-text xml:space="preserve">,OU=Groups,
</token-text>
<token-text xml:space="preserve">ou=</token-text>
<token-local-variable name="schoolOU"/>
<token-text xml:space="preserve">,ou=</token-
text>
<token-text WHAT GOES HERE??????

<token-text
xml:space="preserve">,ou=school,ou=nisd,dc=northsi de,dc=isd,dc=tenet,dc=e
du</token-text>
</arg-dn>
<arg-value type="dn">
<token-src-dn/>
</arg-value>
</do-add-dest-attr-value>

</actions>
</rule>