token-parse-dn

<token-parse-dn> extracts and/or converts part or all of the DN specified by result of the enclosed tokens. The DN is parsed according the format specified by src-dn-format. The portion of the DN specified by start and length is then converted to the format specified by dest-dn-format.

src-dn-delims and dest-dn-delims are used to specify custom DN formats. The eight (8) characters that make up the delimiter set are defined as follows:

  1. Typed Name Boolean Flag: '0' means names are NOT typed, '1' means names are typed
  2. Unicode No-Map Character Boolean Flag: '0' means don't output or interpret unmappable unicode characters as escaped hex digit strings, e.g.,\FEFF. The following unicode characters are not accepted by eDirectory: 0xfeff, 0xfffe, 0xfffd, and 0xffff.
  3. Relative RDN Delimiter
  4. RDN Delimiter
  5. Name Divider
  6. Name Value Delimiter
  7. Wildcard Character
  8. Escape Character

If RDN Delimiter and Relative RDN Delimiter are the same character, then the orientation of the name is root right, otherwise the orientation is root left.

If there are more than eight characters in the delimiter set, then the extra characters will all be considered to be characters that need to be escaped but will have no other special meaning.

Example

<token-parse-dn dest-dn-format="dest-dn" length="-1" src-dn-format="src-dn" start="0">
  <token-op-attr name="Group Membership"/>
</token-parse-dn>

1. Allowed Content

token-added-entitlement
the value(s) of an entitlement granted in the current operation
token-association
the association value from the current operation
token-attr
the value(s) of an attribute in the current operation or current object in the source datastore
token-base64-decode
decode base64 data into a string
token-base64-encode
encode a string into base64 data
token-char
a unicode character
token-class-name
the object class name from the current operation
token-convert-time
convert a date/time from one format to another
token-dest-attr
the value(s) of an attribute of current object in the destination datastore
token-dest-dn
a value derived from the destination DN from the current operation
token-dest-name
the unqualified RDN derived from destination DN from the current operation
token-document
read an XML document
token-entitlement
the value(s) of a granted entitlement of the current object
token-escape-for-dest-dn
convert a string for use in a destination DN
token-escape-for-src-dn
convert a string for use in a source DN
token-generate-password
generate a random password
token-global-variable
the value of a global variable
token-join
join a node-set into a string
token-local-variable
the value of a local variable
token-lower-case
convert a string to lower case
token-named-password
the value of the named password
token-map
map a string through a mapping table
token-op-attr
the value(s) of an attribute in the current operation
token-op-property
the value of an operation property
token-operation
the name of the current operation
token-parse-dn
parse and/or convert a DN
token-password
the value of the password in current operation
token-query
query the source or destination datastore
token-removed-attr
the value(s) of an attribute removed in the current operation
token-removed-entitlement
the value(s) of an entitlement revoked in the current operation
token-replace-all
replace all instances of a substring within a string
token-replace-first
replace a single instance of a substring within a string
token-resolve
resolve a DN to an association key or an association key to a DN.
token-split
split a string into a node-set
token-src-attr
the value(s) of an attribute of current object in the source datastore
token-src-dn
a value derived from the source DN from the current operation
token-src-name
the unqualified RDN derived from source DN from the current operation
token-substring
substring of a string
token-text
constant text
token-time
the current date/time
token-unique-name
a generated unique name
token-unmatched-src-dn
a DN relative to the one matched by if-src-dn
token-upper-case
convert a string to upper case
token-xml-parse
parse XML
token-xml-serialize
serialize XML
token-xpath
the result of an XPATH expression

2. Attributes

AttributeValue(s)Default Value
dest-dn-delims CDATA
specifies the custom DN delimiter set when dest -dn-format="custom"
#IMPLIED
dest-dn-format src-dn   |  dest-dn   |  dot   |  qualified-dot   |  slash   |  qualified-slash   |  ldap   |  custom
the format used to output the parsed DN
dest-dn
length CDATA
number of DN segments to include
negative numbers are interpreted as (total # of segments + length) + 1 (e.g for a DN with 5 segments a length of -1 = (5 + (-1)) + 1 = 5, -2 = (5 + (-2)) + 1 = 4, etc.)
-1
notrace true   |  false
false
src-dn-delims CDATA
specifies the custom DN delimiter set when src-dn-format="custom"
#IMPLIED
src-dn-format src-dn   |  dest-dn   |  dot   |  qualified-dot   |  slash   |  qualified-slash   |  ldap   |  custom
the format used to parse the enclosed DN
src-dn
start CDATA
segment index to start with
0 is the rootmost segment >0 is an offset from the rootmost segment -1 is the leafmost segment <-1 is an offset from the leafmost segment towards the rootmost segment
0

3. Content Rule

( token-added-entitlement | token-association | token-attr | token-base64-decode | token-base64-encode | token-char | token-class-name | token-convert-time | token-dest-attr | token-dest-dn | token-dest-name | token-document | token-entitlement | token-escape-for-dest-dn | token-escape-for-src-dn | token-generate-password | token-global-variable | token-join | token-local-variable | token-lower-case | token-named-password | token-map | token-op-attr | token-op-property | token-operation | token-parse-dn | token-password | token-query | token-removed-attr | token-removed-entitlement | token-replace-all | token-replace-first | token-resolve | token-split | token-src-attr | token-src-dn | token-src-name | token-substring | token-text | token-time | token-unique-name | token-unmatched-src-dn | token-upper-case | token-xml-parse | token-xml-serialize | token-xpath ) +

4. Parent Elements

arg-association
  association argument
arg-component
  component argument
arg-dn
  DN argument
arg-node-set
  node set argument
arg-password
  password argument
arg-string
  string argument
arg-value
  value argument
token-base64-decode
  decode base64 data into a string
token-base64-encode
  encode a string into base64 data
token-convert-time
  convert a date/time from one format to another
token-escape-for-dest-dn
  convert a string for use in a destination DN
token-escape-for-src-dn
  convert a string for use in a source DN
token-join
  join a node-set into a string
token-lower-case
  convert a string to lower case
token-map
  map a string through a mapping table
token-parse-dn
  parse and/or convert a DN
token-replace-all
  replace all instances of a substring within a string
token-replace-first
  replace a single instance of a substring within a string
token-split
  split a string into a node-set
token-substring
  substring of a string
token-upper-case
  convert a string to upper case
token-xml-parse
  parse XML
token-xml-serialize
  serialize XML

Top Elements || All Elements || Tree


DirXMLScript DTD