Oh, quite easy ;-) It worked! Thanks a lot!
-----Ursprüngliche Nachricht----- Von: Clément OUDOT [mailto:[email protected]] Gesendet: Freitag, 2. Juli 2010 17:17 An: Gunter Holzer Cc: [email protected] Betreff: Re: [lsc-users] Java Script Help 2010/7/2 Gunter Holzer <[email protected]>: > Hello, > > > > I´m having some trouble with Java Script. > > I´d like to create a default user password for sync to AD. > > > > lsc.syncoptions.ADuser.unicodePwd.create_value = > AD.getUnicodePwd("changeit") > > > > The user password should be unique for every user synced. So the password > should be a combination of "cn" and "employeeNumber" of an user. > > I can read this attributes by "srcBean.getAttributeValueById("cn")" and > "srcBean.getAttributeValueById("employeeNumber")". > > But how do I put them into "getUnicodePwd"? Hi, try lsc.syncoptions.ADuser.unicodePwd.create_value = AD.getUnicodePwd( srcBean.getAttributeValueById("cn") + srcBean.getAttributeValueById("employeeNumber") ) Clément. _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

