Le 23/11/2018 à 15:39, Martin Röh a écrit :
> Hi,
>
> actually I have followoing working dataset definition:
>
> <dataset>
>         <name>homeDirectory</name>
>                 <policy>FORCE</policy>
>                 <forceValues>
>                              
>  <string>srcBean.getDatasetFirstValueById("unixHomeDirectory")</string>
>                 </forceValues>
> </dataset>
>
> I would like to extend this definiton by a javascript in order to
> check and eventually add another ldap entry:
> - check if  dn
> "automountKey=<uid>,automountMapName=auto.export,ou=auto.home,dc=foo,dc=bar"
> exists, if not create it
>
> Is this possible ? If so how must I implement it ? (Unfortunately I
> have only little javascript knowledge).

Hello Martin,

you can not create a new entry with javascript in a dataset. Two solutions:
* Create a new task dedicated to automount entries, that will read user
entries in source and map them to automount entries in destination
* Use the executable plugin to script what you want when LSC triggers a
creation or an update:
https://lsc-project.org/documentation/plugins/executable

-- 
Clément Oudot | Identity Solutions Manager

[email protected]

Worteks | https://www.worteks.com

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to