Issue #257 has been updated by Jonathan Clarke.

Category set to Core
Status changed from New to Closed
Assigned to set to Jonathan Clarke
Target version set to 1.2.1
% Done changed from 0 to 100

Hi,

Thanks for the report.

This turns out to be a bug introduced while fixing #224. 1.2.0 was not 
affected. The bug was adding a "," to search results DNs if the search base was 
"".

It's fixed now in the 1.2 branch and will be available in tomorrow's 
1.2-SNAPSHOT, and of course in 1.2.1.
----------------------------------------
Bug #257: Extra commas returned in ldap.search method causing errors
http://tools.lsc-project.org/issues/257

Author: Liam Curtis
Status: Closed
Priority: High
Assigned to: Jonathan Clarke
Category: Core
Target version: 1.2.1
Problem in version: 


Hi There,

When using ldapsearch method to derive destination DN, an extra comma is 
appended, causing errors while updating destination DN and leading lsc to try 
and create new superior DN. 

### SOURCE #########   

# Base DN for searches in the directory
#lsc.tasks.MySyncTask.srcService.baseDn = o=<domino domain>
lsc.tasks.MySyncTask.srcService.filterAll = (objectClass=inetOrgPerson)
lsc.tasks.MySyncTask.srcService.pivotAttrs = mail
lsc.tasks.MySyncTask.srcService.filterId = 
(&(objectClass=inetOrgPerson)(mail={mail}))
lsc.tasks.MySyncTask.srcService.attrs = telephonenumber mail cn


### DESTINATION #########

# Base DN for searches in the directory
#lsc.tasks.MySyncTask.dstService.baseDn=DC=WINDOWSDOMAIN,DC=COM
lsc.tasks.MySyncTask.dstService.filterAll = (objectClass=person)
lsc.tasks.MySyncTask.dstService.pivotAttrs = mail
lsc.tasks.MySyncTask.dstService.filterId = (&(objectClass=Person)(mail={mail}))
#lsc.tasks.MySyncTask.dstService.attrs = telephonenumber mail
lsc.tasks.MySyncTask.dn = ldap.search("","(mail=" + 
srcBean.getAttributeValueById("mail") + ")").get(0)
#lsc.tasks.MySyncTask.dn = ldap.search(&(objectClass=Person)(mail={mail}))
#lsc.tasks.MySyncTask.dn =  ldap.search("DC=WINDOWSDOMAIN","DC=COM", "(mail=" + 
srcBean.getAttributeFirstValueById("mail") + ")" )
#lsc.tasks.MySyncTask.dn = "(cn=" + srcBean.getAttributeValueById("cn")

Example of Error:

Jul 12 09:20:38 - ERROR - Error while synchronizing ID CN=John Doe,OU=Use
rs,OU=COUNTRY: org.mozilla.javascript.WrappedException: Wrapped 
java.lang.IndexOutO
fBoundsException: Index: 0, Size: 0 (<cmd>#1)
dn: CN=John Doe,OU=Users,OU=COUNTRY,dc=WINDOWSDOMAIN,dc=COM  <--DN looks 
correct here
changetype: modrdn
newrdn: CN=John Doe
deleteoldrdn: 1
newsuperior: OU=Users,OU=COUNTRY,,dc=WINDOWSDOMAIN,dc=COM  <--Note the space 
here






-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

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

Reply via email to