File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Scripts
2424
2525Declare each needed script in Executable service section:
2626
27- ```
27+ ``` xml
2828 <exec : listScript >/var/lib/lsc/list.sh</exec : listScript >
2929 <exec : getScript >/var/lib/lsc/get.sh</exec : getScript >
3030 <exec : addScript >/var/lib/lsc/add.sh</exec : addScript >
@@ -38,7 +38,7 @@ Variables
3838
3939Use plugin service variables to declare the LDAP parameters:
4040
41- ```
41+ ``` xml
4242 <exec : variables >
4343 <entry ><key >LDAP_BIND_DN</key ><value >cn=Directory Manager</value ></entry >
4444 <entry ><key >LDAP_BIND_PW</key ><value >secret</value ></entry >
Original file line number Diff line number Diff line change 4040
4141Nothing is given on STDIN by LSC. The script must send to STDOUT the list of entries under this format:
4242
43- ```
43+ ``` ldif
4444dn: entry1 identifier
4545pivot1: aaa
4646
5555
5656For each entry found, LSC call the GET script with all the pivot attributes and their values on STDIN, under this format:
5757
58- ```
58+ ``` ldif
5959pivot1: aaa
6060pivot2: xxx
6161```
6262
6363The script must find the corresponding entry and return the full entry on STDOUT, under this format:
6464
65- ```
65+ ``` ldif
6666dn: entry identifier
6767attribute1: aaa
6868attribute2: abc
7676
7777LSC will send on STDIN the LDIF of an entry to add, with changetype ` add ` :
7878
79- ```
79+ ``` ldif
8080dn: DN
8181changetype: add
8282attribute1: aaa
9393
9494LSC will send on STDIN the LDIF of an entry to modify, with changetype ` modify ` :
9595
96- ```
96+ ``` ldif
9797dn: DN
9898changetype: modify
9999replace: attribute1
@@ -112,7 +112,7 @@ REMOVE
112112
113113LSC will send on STDIN the LDIF of an entry to delete, with changetype ` delete ` :
114114
115- ```
115+ ``` ldif
116116dn: DN
117117changetype: delete
118118```
@@ -126,7 +126,7 @@ RENAME
126126
127127LSC will send on STDIN the LDIF of an entry to rename, with changetype ` modrdn ` :
128128
129- ```
129+ ``` ldif
130130dn: DN
131131changetype: modrdn
132132newrdn: attribute1=aaa
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ List script
2626
2727Declare list script in the plugin service:
2828
29- ```
29+ ``` xml
3030 <exec : listScript >/var/lib/lsc/lsc-executable-csv2ldif-list.pl</exec : listScript >
3131```
3232
@@ -35,7 +35,7 @@ Get script
3535
3636Declare get script in the plugin service:
3737
38- ```
38+ ``` xml
3939 <exec : getScript >/var/lib/lsc/lsc-executable-csv2ldif-get.pl</exec : getScript >
4040```
4141
@@ -44,7 +44,7 @@ Variables
4444
4545Use plugin services variables to declare the CSV parameters:
4646
47- ```
47+ ``` xml
4848 <exec : variables >
4949 <entry ><key >CSV_FILE</key ><value >/tmp/sample.csv</value ></entry >
5050 <entry ><key >CSV_DELIMITER</key ><value >;</value ></entry >
Original file line number Diff line number Diff line change 2828
2929There is one script for all operations (ADD, REMOVE, UPDATE and RENAME).
3030
31- ```
31+ ``` xml
3232 <exec : addScript >/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec : addScript >
3333 <exec : updateScript >/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec : updateScript >
3434 <exec : removeScript >/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec : removeScript >
@@ -45,7 +45,7 @@ Hacking
4545
4646By default, the script does nothing:
4747
48- ```
48+ ``` perl
4949 if ( $entry -> changetype() eq " add" ) {
5050 }
5151 if ( $entry -> changetype() eq " modify" ) {
You can’t perform that action at this time.
0 commit comments