Hello Everyone,
I have a few issues/questions to ask. I hope someone can help.
1. Why when I sync my live ldap with the backup ldap does the
uid=Robert.czipo i live get Changed to CN=Robert Czipo in the backup
ldap(see image below). Does it have to do with the mainIdentifier below?
can I add two to include uid or combine?
<mainIdentifier>js:"cn=" +
javax.naming.ldap.Rdn.escapeValue(srcBean.getDatasetFirstValueById("cn")) +
",ou=Secure,ou=MIS,ou=People,dc=unfpa,dc=org"</mainIdentifier>
[image: Inline image 1]
2. Not sure why first letter for first and last name are lowercae in live
and capitals in the backup ldap(see image above). not sure how to stop this.
and #3
I'm trying to sunc an attribute called inetUserStatus from live to
backup,but I'm getting this error.
I guess if I can get a few answers I might be able to better understand
LSC. I'm totally new at this and just looking for your guidence. This is
the error.
1591 [MySyncTask-17] ERROR org.lsc.jndi.JndiServices - Error while
modifying entry cn=Robert Czipo,ou=Secure,ou=MIS,ou=People,dc=test,dc=org
in directory :javax.naming.directory.SchemaViolationException: [LDAP: error
code 65 - Entry cn=Robert Czipo,ou=Secure,ou=MIS,ou=People,dc=test,dc=org
cannot be modified because the resulting entry would have violated the
server schema: Entry cn=Robert
Czipo,ou=Secure,ou=MIS,ou=People,dc=test,dc=org violates the Directory
Server schema configuration because it includes attribute inetUserStatus
which is not allowed by any of the objectclasses defined in that entry];
remaining name 'cn=Robert Czipo'
1591 [MySyncTask-17] ERROR org.lsc.AbstractSynchronize - Error while
synchronizing ID cn=Robert Czipo,ou=Secure,ou=MIS,ou=People,dc=test,dc=org:
java.lang.Exception: Technical problem while applying modifications to the
destination
1609 [MySyncTask-11] DEBUG org.lsc.AbstractSynchronize -
java.lang.Exception: Technical problem while applying modifications to the
destination
java.lang.Exception: Technical problem while applying modifications to the
destination
at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:801)
[lsc-core-2.1.3.jar:na]
at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:707)
[lsc-core-2.1.3.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source) [na:1.6.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source) [na:1.6.0_17]
at java.lang.Thread.run(Unknown Source) [na:1.6.0_17]
1609 [MySyncTask-11] ERROR org.lsc.AbstractSynchronize -
I've include my lsc.xml file below.
Regards and Thank You Again,
Robert
<?xml version="1.0" ?>
<lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.1.xsd" revision="0">
<connections>
<ldapConnection>
<name>src-ldap</name>
<url>ldap://
ldapauth01.test.org:389/ou=Secure,ou=MIS,ou=People,dc=test,dc=org</url>
<username>cn=Directory Manager</username>
<password>secret</password>
<authentication>SIMPLE</authentication>
<referral>IGNORE</referral>
<derefAliases>NEVER</derefAliases>
<version>VERSION_3</version>
<pageSize>-1</pageSize>
<factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
<tlsActivated>false</tlsActivated>
</ldapConnection>
<ldapConnection>
<name>dst-ldap</name>
<url>ldap://
ldaptest.test.org:389/ou=Secure,ou=MIS,ou=People,dc=test,dc=org</url>
<username>cn=Directory Manager</username>
<password>secret</password>
<authentication>SIMPLE</authentication>
<referral>IGNORE</referral>
<derefAliases>NEVER</derefAliases>
<version>VERSION_3</version>
<pageSize>-1</pageSize>
<factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
<tlsActivated>false</tlsActivated>
</ldapConnection>
</connections>
<tasks>
<task>
<name>MySyncTask</name>
<bean>org.lsc.beans.SimpleBean</bean>
<ldapSourceService>
<name>MySyncTask-src</name>
<connection reference="src-ldap" />
<baseDn>ou=Secure,ou=MIS,ou=People,dc=test,dc=org</baseDn>
<pivotAttributes>
<string>cn</string>
</pivotAttributes>
<fetchedAttributes>
<string>uid</string>
<string>givenName</string>
<string>cn</string>
<string>mail</string>
<string>sn</string>
<string>ou</string>
<string>inetUserStatus</string>
</fetchedAttributes>
<getAllFilter>(objectClass=inetOrgPerson)</getAllFilter>
<getOneFilter>(&(objectClass=inetOrgPerson)(cn={cn}))</getOneFilter>
<cleanFilter>(&(objectClass=inetOrgPerson)(cn={cn}))</cleanFilter>
</ldapSourceService>
<ldapDestinationService>
<name>MySyncTask-dst</name>
<connection reference="dst-ldap" />
<baseDn>ou=Secure,ou=MIS,ou=People,dc=test,dc=org</baseDn>
<pivotAttributes>
<string>cn</string>
</pivotAttributes>
<fetchedAttributes>
<string>cn</string>
<string>givenName</string>
<string>sn</string>
<string>userPassword</string>
<string>objectClass</string>
<string>uid</string>
<string>mail</string>
<string>ou</string>
<string>inetUserStatus</string>
</fetchedAttributes>
<getAllFilter>(objectClass=inetOrgPerson)</getAllFilter>
<getOneFilter>(&(objectClass=inetOrgPerson)(cn={cn}))</getOneFilter>
</ldapDestinationService>
<propertiesBasedSyncOptions>
<mainIdentifier>js:"cn=" +
javax.naming.ldap.Rdn.escapeValue(srcBean.getDatasetFirstValueById("cn")) +
",ou=Secure,ou=MIS,ou=People,dc=test,dc=org"</mainIdentifier>
<defaultDelimiter>;</defaultDelimiter>
<defaultPolicy>FORCE</defaultPolicy>
<conditions>
<create>true</create>
<update>true</update>
<delete>true</delete>
<changeId>true</changeId>
</conditions>
<dataset>
<name>objectClass</name>
<policy>FORCE</policy>
<defaultValues></defaultValues>
<forceValues></forceValues>
<createValues>
<string>"top"</string>
<string>"person"</string>
<string>"inetOrgPerson"</string>
<string>"person"</string>
<string>"inetUserStatus"</string>
</createValues>
<delimiter>,</delimiter>
</dataset>
<dataset>
<name>uid</name>
<policy>FORCE</policy>
<forceValues>
<string><![CDATA[js:
var uid = srcBean.getDatasetFirstValueById("uid");
uid;
]]></string>
</forceValues>
</dataset>
<dataset>
<name>inetUserStatus</name>
<policy>FORCE</policy>
<forceValues>
<string><![CDATA[js:
var inetUserStatus =
srcBean.getDatasetFirstValueById("inetUserStatus");
inetUserStatus;
]]></string>
</forceValues>
</dataset>
</propertiesBasedSyncOptions>
</task>
</tasks>
</lsc>
--
------------------------------
[image: UNFPA] <http://www.unfpa.org/>
<https://www.facebook.com/UNFPA> <https://twitter.com/unfpa>
<https://instagram.com/unfpa/> <https://www.linkedin.com/company/unfpa>
<https://www.youtube.com/user/unfpa>
<https://plus.google.com/+unfpa/posts>
<http://visitor.r20.constantcontact.com/manage/optin?v=001-YNFZmXHhSP25d9kiBTi0ZxtEwaeIcM-UeLsaXPKYoHs5SAGE1WbNakIrfhkc_3wTTkXkKXbHJpBnXtbqkTATg_O174jFAyLQdNkQkPKQAk=&MERGE0=>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users