Skip to content

Commit 90bf31b

Browse files
committed
Improve doc syntax
1 parent d488de0 commit 90bf31b

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

doc/bash-ldapclients.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Scripts
2424

2525
Declare 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

3939
Use 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>

doc/howto-scripts.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ LIST
4040

4141
Nothing is given on STDIN by LSC. The script must send to STDOUT the list of entries under this format:
4242

43-
```
43+
```ldif
4444
dn: entry1 identifier
4545
pivot1: aaa
4646
@@ -55,14 +55,14 @@ GET
5555

5656
For 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
5959
pivot1: aaa
6060
pivot2: xxx
6161
```
6262

6363
The script must find the corresponding entry and return the full entry on STDOUT, under this format:
6464

65-
```
65+
```ldif
6666
dn: entry identifier
6767
attribute1: aaa
6868
attribute2: abc
@@ -76,7 +76,7 @@ ADD
7676

7777
LSC will send on STDIN the LDIF of an entry to add, with changetype `add`:
7878

79-
```
79+
```ldif
8080
dn: DN
8181
changetype: add
8282
attribute1: aaa
@@ -93,7 +93,7 @@ UPDATE
9393

9494
LSC will send on STDIN the LDIF of an entry to modify, with changetype `modify`:
9595

96-
```
96+
```ldif
9797
dn: DN
9898
changetype: modify
9999
replace: attribute1
@@ -112,7 +112,7 @@ REMOVE
112112

113113
LSC will send on STDIN the LDIF of an entry to delete, with changetype `delete`:
114114

115-
```
115+
```ldif
116116
dn: DN
117117
changetype: delete
118118
```
@@ -126,7 +126,7 @@ RENAME
126126

127127
LSC will send on STDIN the LDIF of an entry to rename, with changetype `modrdn`:
128128

129-
```
129+
```ldif
130130
dn: DN
131131
changetype: modrdn
132132
newrdn: attribute1=aaa

doc/perl-csv.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ List script
2626

2727
Declare 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

3636
Declare 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

4545
Use 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>

doc/perl-ldif.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Script
2828

2929
There 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

4646
By default, the script does nothing:
4747

48-
```
48+
```perl
4949
if ( $entry->changetype() eq "add" ) {
5050
}
5151
if ( $entry->changetype() eq "modify" ) {

0 commit comments

Comments
 (0)