For converting attributes, I learned from S that you can alter
attributes in transport using the syncoptions dataset parameters. In
this example, sAMAccountName is copied in to cn during sync. You can
swap variables for your needs.
cn
FORCE
srcBean.getAttributeFirstValueById("sAMAccountName")
Also, this is not
regex, but in the ldap example they use dataset again to set a value. I
think I seen an example on writing javascript somewhere, maybe that
would work for setting the value with a regex.
userPassword
KEEP
"changethis"
Note - I'm not an lsc exert, just sharing what they've
shown me.
Thanks,
Shannon
On 22.11.2011 03:42, markham extra
wrote:
> thanks,
> i would like transfert from openldap only : sn cn
displayName givenName name mail, and créate a regex password (using the
first 5 letter of givenName and the f3 last lette of sn for esxmpale) or
use a standard custom password if regex is not possible.
> uid don't
exist in AD shemas.
>
> How is it done?
> thanks all
>
> Le 21
novembre 2011 16:49, Clément OUDOT a écrit :
>
>> 2011/11/21 markham
extra :
>> > Hi,
>> >
>> > I need your help,
>> >
>> > I want to
transfert OpenLdap (ou=People) -->Active directory (ou=Users)
>> >
>> >
my lsc connection work fine now (thanks to Sébastien Bahloul ), but i
have
>> > problem with création account during synchronisation :
>> >
>>
>
>> > ERROR - Error while adding entry
uid=20703753,ou=people,dc=monlan-yeah,dc=fr
>> > in directory
:javax.naming.directory.NoSuchAttributeException: [LDAP: error
>> > code
16 - 00000057: LdapErr: DSID-0C090B38, comment: Error in attribute
>> >
conversion operation, data 0, vece ]; remaining name
>> >
'uid=20703753,ou=people,dc=monlan-yeah,dc=fr'
>>
>> The error
NoSuchAttributeException means your try to write an
>> attribute that
does not exist in the schema.
>>
>> Clément.
Links:
------
[1]
mailto:[email protected]
[2] mailto:[email protected]
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users