Before trying with cn, the No Such Attribute means that you are asking to
create an entry with an attribute that does not exists in the schema
(neither in MUST and MAY attributes) of all the objectclasses specified in
your add operation

On Wed, Nov 23, 2011 at 3:01 PM, Natan Sanson <[email protected]> wrote:

> Unfortunately I'm new as you with LSC and I've never tried LDAPtoLDAP, but
> for other experiences with AD I know you have not to specify the cn
> attribute in the mapping attributes, otherwise the AD server will raise
> exceptions during the "add entry" operations
>
> Try to see if removing from the synchronization the cn it works...I think
> you don't need to specify it because, writing the entire DN, you are
> already specifying the cn inside the DN. This is true only for AD
> enironments
>
> Let me know If I'm right. However maybe your problem is different
>
>
> On Wed, Nov 23, 2011 at 2:54 PM, markham extra <[email protected]>wrote:
>
>> thanks Natan
>>
>> i modified that now and i have news error message :
>>
>> RROR - Error while adding entry cn=20803200 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 'cn=20803200'
>> nov. 23 14:17:03 - ERROR - Error while synchronizing ID cn=20803200:
>> java.lang.Exception: Technical problem while applying modifications to
>> directory
>> nov. 23 14:17:03 - DEBUG - java.lang.Exception: Technical problem while
>> applying modifications to directory
>>  java.lang.Exception: Technical problem while applying modifications to
>> directory
>> at
>> org.lsc.AbstractSynchronize.synchronize2Ldap(AbstractSynchronize.java:399)
>> [lsc-core-1.2.1.jar:na]
>>  at org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:272)
>> [lsc-core-1.2.1.jar:na]
>> at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:155)
>> [lsc-core-1.2.1.jar:na]
>>  at org.lsc.Launcher.run(Launcher.java:151) [lsc-core-1.2.1.jar:na]
>> at org.lsc.Launcher.main(Launcher.java:123) [lsc-core-1.2.1.jar:na]
>>
>> sad :( !
>>
>> Anyone could send me a lsc 1.2.x  properties file : Openldap ->AD that works
>> ,for compare, please ?
>>
>> thanks all
>>
>>
>>
>> 2011/11/23 Natan Sanson <[email protected]>
>>
>>> Hi markham, maybe your distinguished name
>>> "uid=20702673,ou=people,dc=monlan-yeah,dc=fr" is different from the dc dn
>>> 'DC=in,DC=monlan-yeah,DC=fr'
>>>
>>> Try to check BaseDN and how you construct the full dn
>>>
>>> Hope it helps
>>>
>>> On Wed, Nov 23, 2011 at 9:36 AM, markham extra <[email protected]>wrote:
>>>
>>>> thanks Shannon,
>>>>
>>>> I progress !!!
>>>>
>>>>
>>>> Now i have a error message :
>>>>
>>>> ERROR - Error while adding entry
>>>> uid=20702673,ou=people,dc=monlan-yeah,dc=fr in directory
>>>> :javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D:
>>>> NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of:
>>>>  'DC=in,DC=monlan-yeah,DC=fr'
>>>>  ]; remaining name 'uid=20702673,ou=people,dc=monlan-yeah,dc=fr'
>>>> nov. 23 09:10:29 - ERROR - Error while synchronizing ID
>>>> uid=20702673,ou=people,dc=monlan-yeah,dc=fr: java.lang.Exception: Technical
>>>> problem while applying modifications to directory
>>>> nov. 23 09:10:29 - DEBUG - java.lang.Exception: Technical problem while
>>>> applying modifications to directory
>>>> java.lang.Exception: Technical problem while applying modifications to
>>>> directory
>>>>  at
>>>> org.lsc.AbstractSynchronize.synchronize2Ldap(AbstractSynchronize.java:399)
>>>> [lsc-core-1.2.1.jar:na]
>>>>  at org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:272)
>>>> [lsc-core-1.2.1.jar:na]
>>>> at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:155)
>>>> [lsc-core-1.2.1.jar:na]
>>>>  at org.lsc.Launcher.run(Launcher.java:151) [lsc-core-1.2.1.jar:na]
>>>> at org.lsc.Launcher.main(Launcher.java:123) [lsc-core-1.2.1.jar:na]
>>>>
>>>>
>>>> what's wrong ?
>>>>
>>>> thanks all !
>>>>
>>>>
>>>> 2011/11/22 Shannon <[email protected]>
>>>>
>>>>> **
>>>>>
>>>>> 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.
>>>>>
>>>>>     <dataset id="23">
>>>>>        <name>cn</name>
>>>>>        <policy>FORCE</policy>
>>>>>        <forceValues id="25">
>>>>>
>>>>> <string>srcBean.getAttributeFirstValueById("sAMAccountName")</string>
>>>>>        </forceValues>
>>>>>    </dataset>
>>>>>
>>>>> 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.
>>>>>
>>>>>         <dataset id="23">
>>>>>           <name>userPassword</name>
>>>>>           <policy>KEEP</policy>
>>>>>           <defaultValues id="24">
>>>>>             <string>"changethis"</string>
>>>>>           </defaultValues>
>>>>>           <forceValues id="25"></forceValues>
>>>>>           <createValues id="26"></createValues>
>>>>>         </dataset>
>>>>>
>>>>> 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 <[email protected]> a
>>>>> écrit :
>>>>>
>>>>>> 2011/11/21 markham extra <[email protected]>:
>>>>>> > 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.
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________________________
>>>>> 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
>>>>
>>>>
>>>
>>
>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to