@@ -10,6 +10,13 @@ This plugin uses [FusionDirectory REST API](https://rest-api.fusiondirectory.org
10
10
11
11
## Configuration
12
12
13
+ ### XML namespace
14
+
15
+ You need to add the plugin namespace to the main lsc.xml file, for example:
16
+ ``` xml
17
+ <lsc xmlns =" http://lsc-project.org/XSD/lsc-core-2.2.xsd" xmlns : fusiondirectory =" http://lsc-project.org/XSD/lsc-fusiondirectory-plugin-1.0.xsd" revision =" 0" >
18
+ ```
19
+
13
20
### PluginConnection
14
21
15
22
+ ` name ` : the name of the connection
@@ -19,7 +26,7 @@ This plugin uses [FusionDirectory REST API](https://rest-api.fusiondirectory.org
19
26
20
27
Example:
21
28
22
- ```
29
+ ``` xml
23
30
<pluginConnection >
24
31
<name >fusiondirectory</name >
25
32
<url >http://fusiondirectory.local/fusiondirectory/rest.php/v1</url >
@@ -40,7 +47,7 @@ Example:
40
47
41
48
Example of source service :
42
49
43
- ```
50
+ ``` xml
44
51
<pluginSourceService implementationClass =" org.lsc.plugins.connectors.fusiondirectory.FusionDirectorySrcService" >
45
52
<name >fusiondirectory-source-service</name >
46
53
<connection reference =" fusiondirectory" />
@@ -69,7 +76,7 @@ Example of source service :
69
76
70
77
Example of a destination service :
71
78
72
- ```
79
+ ``` xml
73
80
<pluginDestinationService implementationClass =" org.lsc.plugins.connectors.fusiondirectory.FusionDirectoryDstService" >
74
81
<name >fusiondirectory-dest-service</name >
75
82
<connection reference =" fusiondirectory" />
@@ -98,13 +105,13 @@ Example of a destination service :
98
105
99
106
Multiple attributes in Fusiondirectory must be declared as so:
100
107
101
- ```
108
+ ``` xml
102
109
<fusiondirectory : attribute multiple =" true" >title</fusiondirectory : attribute >
103
110
```
104
111
105
112
Attribute user/userPassword may define a passwordHash with a value chosen from Fusiondirectory > Configuration > Password settings > allowed password hashes:
106
113
107
- ```
114
+ ``` xml
108
115
<fusiondirectory : attribute passwordHash =" clear" >userPassword</fusiondirectory : attribute >
109
116
```
110
117
@@ -130,13 +137,13 @@ If no filters are defined, the connector will retrieve all entries of type _enti
130
137
131
138
When using the destination service, the ` mainIdentifier ` holds the value of your pivot attribute:
132
139
133
- ```
140
+ ``` xml
134
141
<mainIdentifier ><![CDATA[ srcBean.getDatasetFirstValueById("uid") ]]> </mainIdentifier >
135
142
```
136
143
137
144
The ` base ` attribute holds the location where the entity will be created or moved to:
138
145
139
- ```
146
+ ``` xml
140
147
<dataset >
141
148
<name >base</name >
142
149
<policy >FORCE</policy >
@@ -152,7 +159,7 @@ The `base` attribute holds the location where the entity will be created or move
152
159
153
160
First, declare it as a customLibrary:
154
161
155
- ```
162
+ ``` xml
156
163
<task >
157
164
...
158
165
<customLibrary >
@@ -163,7 +170,7 @@ First, declare it as a customLibrary:
163
170
164
171
Then, an instance of the class can be accessed in scripts using ` custom[0] ` :
165
172
166
- ```
173
+ ``` xml
167
174
<dataset >
168
175
<name >member</name >
169
176
<forceValues >
@@ -185,7 +192,7 @@ This library has available methods:
185
192
186
193
Here is a script example of resolving group members DN from AD to FusionDirectory:
187
194
188
- ```
195
+ ``` xml
189
196
<dataset >
190
197
<name >member</name >
191
198
<forceValues >
0 commit comments