Hello,

LSC 2.1 is not working in clean mode. Objects that are not in source Ldap
are not getting deleted in the destination Active directory during clean
mode

I tried to running LSC in DEBUG Mode, it starts running in clean mode but I
do not see any debug information comparing the destination object with
the source and no error information as well. When  delete sync option is
set to true, all objects in destination including objects that exist in the
source
active directory are getting deleted from the destination active directory.

Below is the snippet of lsc.xml

<?xml version="1.0" ?>
<lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.1.xsd"; revision="0">
          <connections>
                <task>
                                                <name>copyUsers</name>
                        <ldapSourceService>
                                <name>batchUsers-src-service</name>
                                <connection reference="ldap-conn" />
                                <baseDn>****</baseDn>
                                <pivotAttributes>
                                        <string>cn</string>
                                </pivotAttributes>
                                <fetchedAttributes>
                                        <string>cn</string>
                                        <string>uidNumber</string>
                                        <string>gidNumber</string>
                                        <string>sn</string>
                                        <string>displayName</string>
                                        <string>givenName</string>
                                        <string>objectClass</string>
                                        <string>sAMAccountName</string>
                                        <string>gecos</string>
                                        <string>unixHomeDirectory</string>
                                </fetchedAttributes>
                                
<getAllFilter>(&amp;(objectClass=user))</getAllFilter>
                                <getOneFilter>(&amp;(objectClass=user) 
(cn={cn}))</getOneFilter>
                                <interval>5</interval>
                        </ldapSourceService>
                                                <ldapDestinationService>
                                <name>batchusers-dst-service</name>
                                <connection reference=“ldap-test-conn" />
                                <baseDn>****</baseDn>
                                <pivotAttributes>
                                        <string>cn</string>
                                </pivotAttributes>
                                <fetchedAttributes>
                                        <string>cn</string>
                                        <string>uidNumber</string>
                                        <string>gidNumber</string>
                                        <string>sn</string>
                                        <string>displayName</string>
                                        <string>givenName</string>
                                        <string>objectClass</string>
                                        <string>sAMAccountName</string>
                                        <string>gecos</string>
                                        <string>unixHomeDirectory</string>
                                        <string>userPassword</string>
                                        <string>userAccountControl</string>
                                </fetchedAttributes>

                                <getAllFilter>(objectClass=user)</getAllFilter>
                                
<getOneFilter>(&amp;(objectClass=user)(cn={cn}))</getOneFilter>
                        </ldapDestinationService>
                        <propertiesBasedSyncOptions>
                                                                        
<mainIdentifier>"CN="+srcBean.getDatasetFirstValueById("cn")"
                                </mainIdentifier>
                                <defaultDelimiter>;</defaultDelimiter>
                                <defaultPolicy>FORCE</defaultPolicy>
                                <conditions>
                                        <create>true</create>
                                        <update>true</update>
                                        <delete>false</delete>
                                        <changeId>false</changeId>
                                </conditions>
                               <dataset>
                                        <name>userAccountControl</name>
                                        <policy>FORCE</policy>
                                        <defaultValues>
                                        </defaultValues>
                                        <forceValues></forceValues>
                                        <createValues>
                                        </createValues>
                                </dataset>
                        </propertiesBasedSyncOptions>
                </task>

                </tasks>
</lsc>

Thanks,
Narayani
_______________________________________________________________
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