2014-11-16 15:22 GMT+01:00 Uli Tehrani <[email protected]>:

> Hello all,
>

Hi,


>
>  i want to sync netgroups from an old directory to a new one.
> I want to do a 1:1 sync for netgroups starting with a P and then four
> digits (e.g. P0010).
> Other netgroups (e.g. Backup, ctixos) should be mapped to new Pxxxx-Groups
> naming convention (e.g. backup => P1100)
> For the mapping i use a associative array: groupmap.
> Finally there are some netgroups that shall vanish. These groups are
> neither defined in the mapgroup hash nor are they starting with a P.
> So there is no defined mainidentifier.
>
> These netgroups will occur  the following way in the directory:
>
> cn=undefined,ou=netgroupsynced,dc=example,dc=com
>
> Is there a better way to do this ?
>


You can use a create condition to ignore such groups, or configure the
getAllFilter to ignore them.




> Can i put the javascript code outside the lsc.xml ?
>
>

Yes, you can write you method in an external js file. See
http://lsc-project.org/wiki/documentation/latest/scripting/start#external_files




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

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to