Issue #234 has been updated by Jonathan Clarke.

Status changed from New to Assigned
Assigned to set to Jonathan Clarke

Thanks for the bug report.

There seem to be 2 issues happening here:
1) AD returns a continuation referral which is not handled correctly by the 
JndiServices.getDnList() method, which therefore throws an exception
2) Exception handling for calls via ScriptableJndiServices mistakenly catches 
this execption and handles it as "Programmatic error", which it is not

Reworking all the exception handling is too big and impacting for the 1.2 
branch. So I have fixed 1 in the 1.2 branch (and 1.3, and trunk).

Tomorrow's nightly build will include this fix, see 
http://tools.lsc-project.org/projects/lsc/files.

----------------------------------------
Bug #234: ldap.search doesn´t accept empty string
http://tools.lsc-project.org/issues/234

Author: Gunter Holzer
Status: Assigned
Priority: High
Assigned to: Jonathan Clarke
Category: Core
Target version: 1.2.x branch


Synchronisation from OpenLDAP to AD.

The Java script in "lsc.syncoptions.group.member.force_value" has a problem, if 
you use an empty string for the ou.

lsc.syncoptions.group.member.force_value = \
    var umembers = \
        srcBean.getAttributeValuesById("uniqueMember").toArray() ; \
    for (var i=0; i<umembers.length; i++ ) { \
        try { \
-->          umembers[i] = ldap.attribute(ldap.search( "", \         <--------
                "(sAMAccountName=" \
                    + (srcLdap.attribute(umembers[i], 'uid').get(0) \
                    + ")"
                )).get(0), 'distinguishedname').get(0) \
        } catch (e) { \
            umembers[i]=null \
        } \
    } \
    var members = new Array(); \
    var j=0; \
    for (var i=0; i<umembers.length; i++) { \
        if (umembers[i]!=null) members[j++]=umembers[i] \
    } \
    members


Error:
See logfile.




-- 
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