add
Specifies an input that creates a new entry in the receiver.
The <add> element is an input command or an input event. It is used for following tasks:
<!ELEMENT add (association?, add-attr*, password?)>
<!ATTLIST add
src-dn CDATA #IMPLIED
src-entry-id CDATA #IMPLIED
dest-dn CDATA #IMPLIED
dest-entry-id CDATA #IMPLIED
class-name CDATA #REQUIRED
template-dn CDATA #IMPLIED
event-id CDATA #IMPLIED>
<!ELEMENT add-attr (value+)>
<!ATTLIST add-attr
attr-name CDATA #REQUIRED>
<!ELEMENT password (#PCDATA)>
The DirXML engine sends the following attributes and elements in the add command to the subscriber shim:
The publisher shim sends the following attributes in the add command to the DirXML engine:
The subscriber shim must return a status command, and if the add succeeded, the subscriber shim must return an add-association command with the key that uniquely identifies the new entry.
If the entry does not contain values for all the attributes defined in the create rules, DirXML discards the add command for the entry. When a modify command is received for this entry, DirXML queries eDirectory for the missing attributes. If all the attributes now have values, DirXML changes the modify into an add command.
The DirXML engine returns a status command.
If the add event does not contain values for all the attributes defined in the create rules, the add event fails. When a modify event is received for this entry, the DirXML engine queries the publisher shim for the missing attributes. The add event succeeds if the required attributes now have values.
The following example shows an add event from a DirXML driver.
<add class-name="User" src-dn="\Sam">
<association>1012</association>
<add-attr attr-name="cn">
<value>Sam</value>
</add-attr>
<add-attr attr-name="Surname">
<value>Jones</value>
</add-attr>
<add-attr attr-name="Given Name">
<value>Sam</value>
</add-attr>
<add-attr attr-name="Telephone Number">
<value>555-1212</value>
</add-attr>
</add>