Hello,
before i would like to thank you for LSC and for your help on this list.
now i have some lsc configurations ready for production use with an
active directory.
but i got a last difficult, i would like to extract users from an ldap
group and create them into active directory
if i'm able to read the group members lsc always detects and creates
_only one user _and i don't know why :/
i tried to loop on uniqueMember attribute but i don't know what's going
wrong...
here is my source and mainIdentifier configuration
/<baseDn>ou=groups,ou=lyon,o=gouv,c=fr</baseDn>//
//<pivotAttributes>//
// <string>cn</string>//
//</pivotAttributes>//
//<fetchedAttributes>//
// <string>cn</string>//
// <string>uniqueMember</string>//
//</fetchedAttributes>//
//<getAllFilter>(&(objectClass=groupOfUniqueNames)(cn=exceptions_ad))</getAllFilter>//
//<getOneFilter>(&(objectClass=groupOfUniqueNames)(cn=exceptions_ad))</getOneFilter>//
//<cleanFilter>(&(objectClass=inetOrgPerson)(uid={sAMAccountName}))</cleanFilter>/
/</ldapSourceService>/
/ <mainIdentifier><![CDATA[//
//var membersSrcDn = srcBean.getDatasetValuesById("uniqueMember");//
//for (var i = 0 ; i < membersSrcDn.size() ; i++) {//
// var cn = srcLdap.attribute(membersSrcDn.get(i), "cn").get(0);//
// java.lang.System.out.println(membersSrcDn.get(i));//
//}//
//"cn=" + cn + ",ou=_utilisateurs,ou=académie,dc=ac-lyon,dc=local";//
//]]></mainIdentifier>/
with println i can print all members, here is the output :/
/
/[root@ldap2ad lsc]# lsc -f exception/ -s all -n/
/mars 14 11:05:38 - INFO - Logging configuration successfully loaded
from /etc/lsc/exception/logback.xml //
//mars 14 11:05:38 - INFO - LSC configuration successfully loaded from
/etc/lsc/exception///
//mars 14 11:05:38 - INFO - Connecting to LDAP server
ldaps://ad-dc1.ac.local/DC=lyon,DC=local as
CN=lsc,CN=users,DC=lyon,DC=local//
//mars 14 11:05:38 - INFO - Connecting to LDAP server
ldap://ldap/o=gouv,c=fr as uid=consult,ou=autres,ou=lyon,o=gouv,c=fr//
//mars 14 11:05:38 - INFO - Starting sync for LdapSync2AD//
//
//*uid=adirectory,ou=personnel,ou=lyon,o=gouv,c=fr*//*
*//*uid=ext_jcesar,ou=autres,ou=lyon,o=gouv,c=fr*/
/mars 14 11:05:41 - INFO - *All entries: _1_, to modify entries: _1_,
successfully modified entries: 0, errors: 0*/
thank you!
_______________________________________________________________
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