| Author | unknown |
| Date | unknown |
| Updated by | Catherine Winfrey |
| Date | 2008/07/17 |
The ED-LDAP Replication Service is one of the Replication Services of the clients-repl subversion project. See Replication Services Overview for a description of the overall replication process. This documentation describes the target system specific processing referred to in that documentation.
The ED-LDAP target system specific processing is as follows:
sendSPML() method.addRequest or a deleteRequest.addRequest is used both for creating a new ED record and modifying an existing ED recorddeleteRequest is used for deleting an existing ED recordLdap call.
Communication with the ED(s) uses an Ldap connection.
Template SPML Batch Requests:
<batchRequest xmlns:spml="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="http://www.dsml.org/DSML" onError="exit" processing="sequential"> <spml:addRequest> <spml:identifier type="urn:vt.edu:SPML:person"> <spml:id>uid=1234,ou=People,dc=vt,dc=edu</spml:id> </spml:identifier> <spml:attributes> <dsml:attr name="single-valued-attribute"> <dsml:value>value</dsml:value> </dsml:attr> <dsml:attr name="multi-valued-attribute"> <dsml:value>value1</dsml:value> <dsml:value>value2</dsml:value> </dsml:attr> </spml:attributes> </spml:addRequest> <spml:addRequest> <spml:identifier type="urn:vt.edu:SPML:address"> <spml:id>uuaid=5678,ou=Addresses,dc=vt,dc=edu</spml:id> </spml:identifier> <spml:attributes> <dsml:attr name="attribute"> <dsml:value>value</dsml:value> </dsml:attr> <dsml:attr name="multi-valued-attribute"> <dsml:value>value</dsml:value> <dsml:value>value</dsml:value> </dsml:attr> </spml:attributes> </spml:addRequest> </batchRequest>
<batchRequest xmlns:spml="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="http://www.dsml.org/DSML" onError="exit" processing="sequential"> <spml:deleteRequest> <spml:identifier type="urn:vt.edu:SPML:person"> <spml:id>uid=1234,ou=People,dc=vt,dc=edu</spml:id> </spml:identifier> </spml:deleteRequest> </batchRequest>
<batchRequest xmlns:spml="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="http://www.dsml.org/DSML" onError="exit" processing="sequential"> <spml:addRequest> <spml:identifier type="urn:vt.edu:SPML:group"> <spml:id>uugid=abcd,ou=Groups,dc=vt,dc=edu</spml:id> </spml:identifier> <spml:attributes> <dsml:attr name="attribute"> <dsml:value>value</dsml:value> </dsml:attr> <dsml:attr name="multi-valued-attribute"> <dsml:value>value</dsml:value> <dsml:value>value</dsml:value> </dsml:attr> </spml:attributes> </spml:addRequest> </batchRequest>
<batchRequest xmlns:spml="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="http://www.dsml.org/DSML" onError="exit" processing="sequential"> <spml:deleteRequest> <spml:identifier type="urn:vt.edu:SPML:person"> <spml:id>uugid=abcd,ou=Groups,dc=vt,dc=edu</spml:id> </spml:identifier> </spml:deleteRequest> </batchRequest>
<batchRequest xmlns:spml="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="http://www.dsml.org/DSML" onError="exit" processing="sequential"> <spml:addRequest> <spml:identifier type="urn:vt.edu:SPML:group"> <spml:id>uid=9876,ou=Entitlements,dc=vt,dc=edu</spml:id> </spml:identifier> <spml:attributes> <dsml:attr name="attribute"> <dsml:value>value</dsml:value> </dsml:attr> <dsml:attr name="multi-valued-attribute"> <dsml:value>value</dsml:value> <dsml:value>value</dsml:value> </dsml:attr> </spml:attributes> </spml:addRequest> </batchRequest>
<batchRequest xmlns:spml="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="http://www.dsml.org/DSML" onError="exit" processing="sequential"> <spml:deleteRequest> <spml:identifier type="urn:vt.edu:SPML:person"> <spml:id>uid=9876,ou=Entitlements,dc=vt,dc=edu</spml:id> </spml:identifier> </spml:deleteRequest> </batchRequest>
<batchRequest xmlns:spml="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="http://www.dsml.org/DSML" onError="exit" processing="sequential"> <spml:addRequest> <spml:identifier type="urn:vt.edu:SPML:group"> <spml:id>uusid=wxyz,ou=Services,dc=vt,dc=edu</spml:id> </spml:identifier> <spml:attributes> <dsml:attr name="attribute"> <dsml:value>value</dsml:value> </dsml:attr> <dsml:attr name="multi-valued-attribute"> <dsml:value>value</dsml:value> <dsml:value>value</dsml:value> </dsml:attr> </spml:attributes> </spml:addRequest> </batchRequest>
<batchRequest xmlns:spml="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="http://www.dsml.org/DSML" onError="exit" processing="sequential"> <spml:deleteRequest> <spml:identifier type="urn:vt.edu:SPML:person"> <spml:id>uusid=wxyz,ou=Services,dc=vt,dc=edu</spml:id> </spml:identifier> </spml:deleteRequest> </batchRequest>
sendSPML() method by throwing a ReplException.sendSPML() method using normal return because no retry is needed.