On 17 mai 2010, at 10:32, Romain <[email protected]> wrote:

Its now good, because now i launch synchronisation with this command : bin/lsc -s all -f etc
But i have always this error message :

----------------------------------
mai 17 10:29:38 - INFO  - Starting sync for user
mai 17 10:29:38 - INFO - Connecting to LDAP server ldap:// 192.168.0.2:389/dc=openldap,dc=nomotech,dc=local as cn=admin,dc=openldap,dc=nomotech,dc=local mai 17 10:29:38 - INFO - Connecting to LDAP server ldap:// 192.168.0.1:389/dc=nomotech,dc=local as cn=Administrateur,cn=Users,dc=nomotech,dc=local mai 17 10:29:38 - ERROR - Error while adding entry ou= in directory :javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - 00000057: LdapErr: DSID-0C090A75, comment: Error in attribute conversion operation, data 0, vece]; remaining name 'ou=' mai 17 10:29:38 - ERROR - Error while synchronizing ID ou=: java.lang.Exception: Technical problem while applying modifications to directory
dn: ou=,dc=nomotech,dc=local
changetype: add
userPrincipalName: [email protected]
mail: [email protected]
sn: romain
cn: romain romain
sAMAccountName: romain
userPassword: {MD5}E0xHX+Rnx1Qw2N/Nw+rz3Q==
objectClass: organizationalPerson
objectClass: person
objectClass: user
objectClass: top
givenName: romain

mai 17 10:29:39 - ERROR - Error while adding entry ou= in directory :javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - 00000057: LdapErr: DSID-0C090A75, comment: Error in attribute conversion operation, data 0, vece]; remaining name 'ou=' mai 17 10:29:39 - ERROR - Error while synchronizing ID ou=: java.lang.Exception: Technical problem while applying modifications to directory
dn: ou=,dc=nomotech,dc=local
changetype: add
userPrincipalName: [email protected]
sn: toto
cn: toto1
sAMAccountName: toto
userPassword: {MD5}E0xHX+Rnx1Qw2N/Nw+rz3Q==
objectClass: organizationalPerson
objectClass: person
objectClass: user
objectClass: top
givenName: toto

mai 17 10:29:39 - ERROR - All entries: 2, to modify entries: 2, modified entries: 0, errors: 2
----------------------------------------

I don't really understand ??? because it works with the 1.2 SNAPSHOT ???

Hi,

Does it also work with the snapshot from last night? (the one on the website now)

Thanks for your feedback,
Jonathan

THanks
Le 17/05/2010 10:16, Romain a écrit :
Yeah but when i let this two file in /etc, i have this error :

------------------------------
Error: Could not understand where the configuration is! Try using - f option. Aborting.
Last log file line: 2010/05/17 10:15:52 [lsc] Starting LSC
-----------------------------------

Thanks

Le 17/05/2010 10:12, Rémy-Christophe Schermesser a écrit :
2010/5/17 Romain<[email protected]>:
At the beginnig, i have copy the logback.xml and the lsc.properties to
diretory etc, to racine. Thats right ??
The logback.xml and lsc.properties should be in the etc/ directory not
at the root of the lsc

So my logback.xml is like that
--------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<configuration>

<!-- standard output to console -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<layout class="org.lsc.utils.output.LdifLayout">
<Pattern>%date{MMM dd HH:mm:ss} - %-5level - %message%n</Pattern>
</layout>
</appender>
The LdifLayout is not properly configure, can you do it and try again ?


<!-- log all application messages to the file /tmp/lsc.log -->
<!-- this file is rotated every 10000KB, compressed and 7 files are kept for
history -->
<appender name="LSC"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<Append>true</Append>
<File>/tmp/lsc.log</File>

<layout class="org.lsc.utils.output.LdifLayout">
<Pattern>%date{MMM dd HH:mm:ss} - %-5level - %message%n</Pattern>
</layout>

<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>

<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<FileNamePattern>lsc.log.%i.gz</FileNamePattern>
<MinIndex>1</MinIndex>
<MaxIndex>7</MaxIndex>
</rollingPolicy>

<triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10000KB</MaxFileSize>
</triggeringPolicy>
</appender>

<!-- special logger to have a LDIF file of all modifications applied --> <!-- this file is rotated every 10000KB, compressed and 7 files are kept for
history -->
<appender name="LDIF"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<!--See also
http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
<Append>true</Append>
<File>/tmp/lsc.ldif</File>

<layout class="org.lsc.utils.output.LdifLayout">
<Pattern>%m%n</Pattern>
</layout>

<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>

<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<FileNamePattern>lsc.ldif.%i.gz</FileNamePattern>
<MinIndex>1</MinIndex>
<MaxIndex>7</MaxIndex>
</rollingPolicy>

<triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10000KB</MaxFileSize>
</triggeringPolicy>
</appender>

<!-- link log sources and log appenders -->
<logger name="communicationLogger" level="WARN">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.lsc" level="INFO">
<appender-ref ref="LSC"/>
</logger>
<logger name="lsc" level="INFO">
<appender-ref ref="LDIF"/>
</logger>
<logger name="org.apache" level="WARN">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="poolLogger" level="ERROR">
<appender-ref ref="CONSOLE"/>
</logger>
<root level="WARN">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>
--------------------------------------

Thanks

Le 17/05/2010 10:06, Rémy-Christophe Schermesser a écrit :
Hi,

The first lines are a logging problem, so can ou give us your logback.xml
?



2010/5/17 Romain<[email protected]>:

Hello,

I write this mail, because i try the new version 1.2.0, and i have a problem. I have keep my previous lsc.properties who works with the
version
1.2-snapshot, to copy this in my new lsc.properties.
So it is my lsc.properties :

---------------------------------------------------
##############
### Source ###
##############

src.java.naming.security.principal= cn=admin,dc=openldap,dc=nomotech,dc=local
src.java.naming.security.credentials=$ervSimu1
src.java.naming.security.authentication=simple
src.java.naming.referral=ignore

src.java.naming.provider.url=ldap://192.168.0.2:389/ dc=openldap,dc=nomotech,dc=local
src.java.naming.ldap.version=3
src.java.naming.ldap.derefAliases=never
src.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory


###################
### Destination ###
###################

dst.java.naming.security.principal= cn=Administrateur,cn=Users,dc=nomotech,dc=local
dst.java.naming.security.credentials=$ervSimu1
dst.java.naming.security.authentication=simple
dst.java.naming.referral=ignore
dst.java.naming.provider.url=ldap://192.168.0.1:389/ dc=nomotech,dc=local
dst.java.naming.ldap.version=3
dst.java.naming.ldap.derefAliases=never
dst.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
dst.java.naming.ldap.pageSize = 1000
#dst.java.naming.tls = true


#############
### Tasks ###
#############
lsc.tasks=user

### User ###
lsc.tasks.user.srcService=org.lsc.jndi.SimpleJndiSrcService
lsc.tasks.user.srcService.filterAll=(&(sn=*) (objectClass=inetOrgPerson))
lsc.tasks.user.srcService.baseDn=ou=Users
lsc.tasks.user.srcService.attrs=description cn sn userPassword uid
givenName
mail
lsc.tasks.user.dstService=org.lsc.jndi.SimpleJndiDstService
lsc.tasks.user.dstService.filterAll=(&(sn=*)(objectClass=user))
lsc.tasks.user.dstService.baseDn=cn=Users
lsc.tasks.user.dstService.attrs = cn sn sAMAccountName objectClass
description userPrincipalName userPassword givenName mail
lsc.tasks.user.bean=org.lsc.beans.SimpleBean
lsc.tasks.user.srcService.filterId =
(&(objectClass=inetOrgPerson)(uid={uid}))
lsc.tasks.user.srcService.pivotAttrs = uid
lsc.tasks.user.dstService.filterId =
(&(objectClass=user)(sAMAccountName={uid}))
lsc.tasks.user.dstService.pivotAttrs = uid
lsc.tasks.user.dn = "cn=" + srcBean.getAttributeValueById("cn") +
"cn=Users"


###################
### Syncoptions ###
###################

### User ###
lsc.syncoptions.user =
org.lsc.beans.syncoptions.PropertiesBasedSyncOptions
lsc.syncoptions.user.default.action = F
### objectClass<- top/user/person/organizationalperson
lsc.syncoptions.user.objectClass.action = F
lsc.syncoptions.user.objectClass.force_value =
"top";"user";"person";"organizationalPerson"
### sAMAccountName<- uid
lsc.syncoptions.user.sAMAccountName.create_value =
srcBean.getAttributeValueById("uid")
### userPrincipalName<- uid + "@nomotech.local"
lsc.syncoptions.user.userPrincipalName.force_value =
srcBean.getAttributeValueById("uid") + "@nomotech.local"
### userAccountControl
lsc.syncoptions.user.userAccountControl.create_value =
AD.userAccountControlSet( "0", [AD.UAC_SET_NORMAL_ACCOUNT])
### pwdLastSet<- 0 to force user to change password on next connection
lsc.syncoptions.user.pwdLastset.create_value = "0"
### unicodePwd<- "changeit" at creation (requires SSL connection to AD)
lsc.syncoptions.user.unicodePwd.create_value =
AD.getUnicodePwd("changeit")
--------------------------------------------------------

So when i launch this command : bin/lsc -s all, i have this error message
:

-----------------------------------------------------
SLF4J: The following loggers will not work becasue they were created SLF4J: during the default configuration phase of the underlying logging
system.
SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
SLF4J: org.lsc.utils.output.LdifLayout
mai 17 10:00:32 - INFO  - Starting sync for user
mai 17 10:00:32 - INFO  - Connecting to LDAP server
ldap://192.168.0.2:389/dc=openldap,dc=nomotech,dc=local as
cn=admin,dc=openldap,dc=nomotech,dc=local
mai 17 10:00:32 - INFO  - Connecting to LDAP server
ldap://192.168.0.1:389/dc=nomotech,dc=local as
cn=Administrateur,cn=Users,dc=nomotech,dc=local
mai 17 10:00:32 - ERROR - Error while adding entry ou= in directory :javax.naming.directory.InvalidAttributeValueException: [LDAP: error code
21
- 00000057: LdapErr: DSID-0C090A75, comment: Error in attribute
conversion
operation, data 0, vece]; remaining name 'ou='
mai 17 10:00:32 - ERROR - Error while synchronizing ID ou=:
java.lang.Exception: Technical problem while applying modifications to
directory
dn: ou=,dc=nomotech,dc=local
changetype: add
userPrincipalName: [email protected]
mail: [email protected]
sn: romain
cn: romain romain
sAMAccountName: romain
userPassword: {MD5}E0xHX+Rnx1Qw2N/Nw+rz3Q==
objectClass: organizationalPerson
objectClass: person
objectClass: user
objectClass: top
givenName: romain

mai 17 10:00:32 - ERROR - Error while adding entry ou= in directory :javax.naming.directory.InvalidAttributeValueException: [LDAP: error code
21
- 00000057: LdapErr: DSID-0C090A75, comment: Error in attribute
conversion
operation, data 0, vece]; remaining name 'ou='
mai 17 10:00:32 - ERROR - Error while synchronizing ID ou=:
java.lang.Exception: Technical problem while applying modifications to
directory
dn: ou=,dc=nomotech,dc=local
changetype: add
userPrincipalName: [email protected]
sn: toto
cn: toto1
sAMAccountName: toto
userPassword: {MD5}E0xHX+Rnx1Qw2N/Nw+rz3Q==
objectClass: organizationalPerson
objectClass: person
objectClass: user
objectClass: top
givenName: toto

mai 17 10:00:32 - ERROR - All entries: 2, to modify entries: 2, modified
entries: 0, errors: 2
-----------------------------------------------------

So i don't know why i have this error, this line is strange : dn:
ou=,dc=nomotech,dc=local

???

Thanks



_______________________________________________________________
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