Issue #173 has been updated by Jonathan Clarke.

OK, I see what is happening now. During generation, LSC generates a Java file 
for each objectClass you specify (_inetOrgPerson_, in your case) and any 
superior objectClasses (SUP in schema definition).

For _inetOrgPerson_, the LDAP standard [1] defines these as being 
_organizationalPerson_ and _person_, but it seems that Microsoft chose to 
change the standard and uses _user_ as a superior objectClass for 
_inetOrgPerson_ [2].

Unfortunately, this causes LSC to break, since there are two different 
conflicting definitions of the same class. Really, this is not a bug in LSC, 
but poor standards-compliance in Active Directory.

However, you can workaround this problem quite easily, by:

# Removing all content under _src/impl/java_
# Running the generator again, but specifying these parameters:
#* For the target/destination directory, objectClass of _user_
#* For the source directory, objectClass of _inetOrgPerson_
# This should work fine, now.

Please let us know how you get on.

[1] See RFC 2798: http://tools.ietf.org/html/rfc2798#section-3
[2] See http://msdn.microsoft.com/en-us/library/ms682282(VS.85).aspx
----------------------------------------
Bug #173: Error during compile-app
http://tools.lsc-project.org/issues/show/173

Author: bob roozekrans
Status: Feedback
Priority: Normal
Assigned to: 
Category: Sample
Target version: 


Hi,

I had the following error during my first attempt at ant lsc::compile-app



Failed to create task or type native2ascii. After some googling I found that 
this was part of ant-optional. So I installed that but now my error is the 
following:

    [javac] 
/usr/lib/lsc-bob-openldap2ad/src/impl/java/org/lsc/objects/flat/fInetOrgPerson.java:96:
 getGivenName() in org.lsc.objects.flat.fInetOrgPerson cannot override 
getGivenName() in org.lsc.objects.flat.fUser; overridden method is final
    [javac]     public final String getGivenName() {
    [javac]                         ^

And this about 100 times with different files. I have no idea what's wrong.

Setup info:
Ubuntu 8.04 OpenLDAP (Attempted ant lsc::compile-app here )
Windows 2k3 AD

Thanks,
Bob


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