Hi Clément,
I copy the file logback.xml from ubuntu server to Debian server (to
/etc/lsc dir) and the output log is completely different (not in debug
mode):
# /usr/bin/lsc -s all
Jun 05 15:24:18 - INFO - Logging configuration successfully loaded from
/etc/lsc/logback.xml
Jun 05 15:24:18 - INFO - LSC configuration successfully loaded from
/etc/lsc/
Jun 05 15:24:18 - INFO - Connecting to LDAP server
ldap://ldap.local/dc=my,dc=corp as cn=sync,ou=app,ou=users,dc=my,dc=corp
Jun 05 15:24:18 - INFO - Connecting to LDAP server
ldaps://ldap.remote/ou=EXT,dc=corp,dc=remote as
uid=app.w,ou=app,ou=EXT,dc=corp,dc=remote
Jun 05 15:24:19 - INFO - Starting sync for pwsync
Jun 05 15:24:19 - INFO - All entries: 7, to modify entries: 0,
successfully modified entries: 0, errors: 0
2015-06-05 13:00 GMT-03:00 Clément OUDOT <[email protected]>:
> 2015-06-05 17:57 GMT+02:00 Anderson <[email protected]>:
> > Hi,
> >
> > It is exactly what I want. Sync only the userPassword.
> >
> > My objective is to use two tasks:
> >
> > 1 - Synchronize the attributes
> > cn,sn,objectClass,uid,mail,givenName,userPassword from the base A to
> base B
> > - This works perfectly.
> > 2 - Synchronize only the B userPassword from de base B to base A - This
> does
> > not work when I change the attribute value in the base B.
> >
> >
> > The details:
> >
> > I have tested the same configuration on a different server:
> >
> > Description: Ubuntu 14.04.1 LTS
> >
> > java version "1.6.0_33"
> > OpenJDK Runtime Environment (IcedTea6 1.13.5)
> (6b33-1.13.5-1ubuntu0.14.04)
> > OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
> >
> >
> > And it worked:
> >
> > Jun 05 09:21:11 - DEBUG - In object
> > "uid=felipe.silva,ou=test,ou=users,dc=my,dc=corp": List of attributes
> > considered for writing in destination: [userPassword]
> > Jun 05 09:21:11 - DEBUG - In object
> > "uid=felipe.silva,ou=test,ou=users,dc=my,dc=corp": Attribute
> "userPassword"
> > is in FORCE status
> > Jun 05 09:21:11 - DEBUG - In object
> > "uid=felipe.silva,ou=test,ou=users,dc=my,dc=corp": Replacing attribute
> > "userPassword": source values are [[B@64ba3fc1], old values were
> > [[B@6e5d9c6d], new values are [[B@64ba3fc1]
> > .
> > .
> > .
> > Jun 05 09:21:11 - INFO - # Updating object
> > uid=felipe.silva,ou=test,ou=users,dc=my,dc=corp for rnp2pop
> > # Fri Jun 05 09:21:11 BRT 2015
> > dn: uid=felipe.silva,ou=test,ou=users,dc=my,dc=corp
> > changetype: modify
> > replace: userPassword
> > userPassword: {ssha}d3VJVsrx56macmFyQv5mLeEvIFWyovnZeOl4LQ==
> > -
> > .
> > .
> > .
> > Jun 05 09:21:11 - INFO - All entries: 7, to modify entries: 1,
> successfully
> > modified entries: 1, errors: 0
> >
> >
> >
> >
> > But does not work in Debian server:
> >
> > debian_version
> > 7.8
> >
> > $ java -version
> > java -version
> > java version "1.7.0_79"
> > OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-1~deb7u1)
> > OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
> >
> >
> > Nothing is synchronized:
> >
> > 2015/06/05 10:47:22 [lsc] Starting LSC
> > Jun 05 10:47:24 - INFO - Logging configuration successfully loaded from
> > /etc/lsc/test/logback.xml
> > Jun 05 10:47:24 - INFO - LSC configuration successfully loaded from
> > /etc/lsc/test/
> > Jun 05 10:47:24 - INFO - Connecting to LDAP server
> > ldap://ldap.local/dc=my,dc=corp as cn=sync,ou=app,ou=users,dc=my,dc=corp
> > Jun 05 10:47:24 - INFO - Connecting to LDAP server
> > ldaps://ldap.remote/ou=EXT,dc=corp,dc=remote as
> > uid=app.w,ou=app,ou=EXT,dc=corp,dc=remote
> > Jun 05 10:47:26 - INFO - All entries: 8, to modify entries: 0,
> successfully
> > modified entries: 0, errors: 0
> > 2015/06/05 10:47:26 [lsc] LSC finished running
> >
> >
> >
> > Any idea?
>
> Could you also activate debug logs on the Debian server?
>
>
> Clément.
>
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- Standard output to console -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder
class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="org.lsc.utils.output.LdifLayout">
<Pattern>%date{MMM dd HH:mm:ss} - %-5level -
%message%n</Pattern>
</layout>
</encoder>
</appender>
<!-- Log all application messages -->
<!-- this file is rotated every 10000KB, compressed and 7 files are
kept for history -->
<appender name="LSC"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/var/log/lsc/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>DEBUG</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>
<!-- Log for status (to use with check_lsc_status_file.pl -->
<!-- this file is erased at each execution -->
<appender name="LSC_STATUS" class="ch.qos.logback.core.FileAppender">
<append>false</append>
<file>/var/log/lsc/lsc.status</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>DEBUG</level>
</filter>
</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">
<file>/var/log/lsc/lsc.ldif</file>
<layout class="org.lsc.utils.output.LdifLayout">
<Pattern>%m%n</Pattern>
<onlyLdif>true</onlyLdif>
</layout>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</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>
<!-- Main LSC messages -->
<logger name="org.lsc" level="DEBUG">
<appender-ref ref="LSC"/>
<appender-ref ref="LSC_STATUS"/>
</logger>
<!-- Messages for LDIF output -->
<logger name="lsc" level="DEBUG">
<appender-ref ref="LDIF"/>
</logger>
<!-- Other messages -->
<logger name="communicationLogger" level="WARN">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.apache" level="WARN">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="poolLogger" level="WARN">
<appender-ref ref="CONSOLE"/>
</logger>
<!-- Root logger -->
<root level="DEBUG">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users