Hi Gunter,
Sorry for late reply (had a day off ;) ).
My current script looks like that:
<dataset>
<name>member</name>
<policy>FORCE</policy>
<forceValues>
<string>
<![CDATA[js:
var membersOpenLDAP =
srcBean.getAttributeValuesById("memberUid").toArray();
var membersAD = [];
for (var i=0; i<membersOpenLDAP.length; i++)
{
var ADDN =
ldap.search("OU=users,OU=imported,OU=XXX", "(sAMAccountName=" +
membersOpenLDAP[i] + ")");
if (ADDN.size() != 1) {
continue;
}
membersAD.push(ADDN.get(0) + ",DC=XXX,DC=XXX");
}
membersAD
]]>
</string>
</forceValues>
</dataset>
Of course you need to tune it up a bit...
Cheers!
Marcin Baluta
Systems Administrator
tyntec GmbH
Semerteichstr. 54 - 56 | 44141 Dortmund, Germany
T +49 231 477 90 405 | F +49 231 108 799 2
www.tyntec.com
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gunter
Holzer
Sent: Freitag, 5. Dezember 2014 20:27
To: [email protected]
Subject: Re: [lsc-users] OpenLDAP 2 LDAP synchronization
Hello Marcin,
could you please share the modified script you used, to sync the OpenLDAP
group members with AD?
As we are using posixgroups I am facing the same problem with the missing
"uniqueMember" attribute - there is only "memberUid".
Thank you!
Regards,
Gunter Holzer
Rechenzentrum, IuK
Raum H208
____________________________________
Hochschule Ravensburg-Weingarten
Doggenriedstr.
88250 Weingarten
Tel. +49 751 / 501 4607
E-Mail: [email protected]
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users