Hi all,
I've found the following example in your tutorials:
<dataset>
<name>member</name>
<policy>FORCE</policy>
<forceValues>
<string>
<![CDATA[rjs: var membersSrcDn =
srcBean.getDatasetValuesById("uniqueMember"); var
membersDstDn = []; for (var i=0;
i<membersSrcDn.size(); i++) { var memberSrcDn =
membersSrcDn.get(i); var uid = "";
try { uid =
srcLdap.attribute(memberSrcDn, "uid").get(0); }
catch(e) { continue;
} var destDn =
ldap.search("ou=users,ou=demo", "(sAMAccountName=" + uid + ")");
if (destDn.size() == 0 || destDn.size() > 1) {
continue; }
var destMemberDn = destDn.get(0) + "," +
ldap.getContextDn();
membersDstDn.push(destMemberDn); }
membersDstDn ]]>
</string>
</forceValues>
</dataset>
However, I am forcing this currently, which appears to work:
<dataset>
<name>member</name>
<policy>FORCE</policy>
<forceValues>
<string>
srcBean.getDatasetValuesById("member").toArray()
</string>
</forceValues>
</dataset>
I feel like I'm missing something here. What is the purpose of the script,
and should your values for "srcLdap" and "ldap.search" etc be replaced with
the correct connection references?
Regards,
*Dan Williams *
Google for work Professional
T: 01793 391 420
--
Follow us on: <https://plus.google.com/+Appsbroker/>
<https://twitter.com/appsbroker>
<http://www.linkedin.com/company/appsbroker-consulting-limited/careers?trk=top_nav_careers>
Appsbroker Consulting Limited, Registered office: Appsbroker House, The
Square, Swindon,
SN1 3EB, Company Number: 5702796, VAT Number: GB 876 3533 92, Company
registered in England and Wales.
________________________________________
PLEASE NOTE AS RECIPIENT OF THIS EMAIL: Any views or opinions presented are
solely those of the author and do not represent those of Appsbroker
Consulting Limited. This e-mail is confidential and intended solely for the
addressee. If you are not the intended recipient, be advised that you have
received this mail in error and that any use, dissemination, forwarding,
printing or copying of this e-mail is strictly prohibited. Furthermore, if
you are not the intended recipient, please email it back to the sender and
then immediately permanently delete it.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users