directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keesjan van Bunningen" <keesjan.vanbunnin...@finalist.com>
Subject RE: Help with attributeType entryUUID
Date Mon, 22 Jan 2007 12:02:54 GMT
We need to handle update messages received from a remote LDAP server
(OpenLDAP) and synchronize the data within these messages in our own
database (MySQL) backend. Since the originating party only knows of
LDAP, we (intend to) accept LDAP update messages with an ApacheDS
instance and use an interceptor to pass it on to our backend for update
in our database.

I'm not sure if you can actually consider this to be a replication
system.

Right now I'm trying to get the schema properly set up to handle data
from the remote LDAP server. Initially, this is just by way of importing
an LDIF file containing some test data. Both the entryUUID and entryCSN
attributes are part of this test data set.

We have little control over the data we receive, so I'm just adepting
the schema to accommodate the data we receive. I'm not very knowledgable
as to the exact meaning of these particular attributes.

Keesjan

-----Oorspronkelijk bericht-----
Van: Alex Karasulu [mailto:akarasulu@gmail.com] Namens Alex Karasulu
Verzonden: maandag 22 januari 2007 11:57
Aan: users@directory.apache.org
Onderwerp: Re: Help with attributeType entryUUID

Ok quick question why do you need entryCSN?  You building a replication
system?

Alex

Keesjan van Bunningen wrote:
> Thank you for your help this far.
> 
> I resolved the issue with the missing matchingRules for entryUUID by 
> adding the rules programmatically as you suggested. (BTW, I couldn't 
> use the alternative solution because I didn't know where to find the 
> 1.5 branch of Apache schema. Is this publicly accessible anywhere?!)
> 
> As expected, I now run into a similar problem with an unknown 
> attributeType entryCSN. I can resolve this in the same way, but 
> unfortunately I don't know the proper syntax. Searching the Net only 
> provided me with a partial result:
> 
> "( 1.3.6.1.4.1.4203.666.1.7 NAME 'entryCSN' DESC 'change sequence 
> number o"
> 
> I assume that this is also part of the solution in the 1.5 branch. So 
> my preference goes to using the updated Apache schema instead of me 
> further tweaking the schema myself (easy as it may be).
> 
> Any help is much appreciated.
> 
> Kind regards,
> 
> Keesjan van Bunningen
> 
> 
> -----Oorspronkelijk bericht-----
> Van: Alex Karasulu [mailto:akarasulu@gmail.com] Namens Alex Karasulu
> Verzonden: zaterdag 20 januari 2007 0:51
> Aan: users@directory.apache.org
> Onderwerp: Re: Help with attributeType entryUUID
> 
> Keesjan van Bunningen wrote:
>> Hi,
>>  
>> I installed ApacheDS and loaded my custom schema as explained here:
> http://cwiki.apache.org/DIRxSRVx10/custom-schema.html.
>>  
>> Currently, I'm trying to do an import by ldif file, but this fails 
>> due
> to an unknown attributeType entryUUID
> (http://www.ietf.org/rfc/rfc4530.txt).
>>  
>> Unfortunately, when trying to add this attributeType to my schema the
> parsing fails, because I'm still missing the required matching rules 
> used by the attributeType.
>>  
>> I'm at a loss how to resolve this issue and was wondering whether
> there's actually a readily available schema out there that contains 
> the entryUUID attributeType?
>>  
>> If not, how do you declare a matching rule (and matching rule use)
> entity in your schema (including any additional dependencies) ?
> 
> We've added entryUUID by default in the 1.5 branch to the apache
schema.
> 
>   This will always be in entries starting from 1.5 and up.  It's 
> needed for replication and other things.
> 
> You can add matchingRules for it easily.  Just take the matching rule 
> producers generated by the schema plugin for your custom schema and
add
> the MR to it programatically.   Look at other MatchingRuleProducers
that
> 
> are in the core here like this one to see how:
> 
> http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/
> ma 
> in/java/org/apache/directory/server/core/schema/bootstrap/SystemMatchi
> ng RuleProducer.java?revision=434579&view=markup
> 
> Note that if you take the generated class in target/generated-sources 
> and copy it into the src/main/java/path-to-package directory it will 
> no longer be generated by the schema plugin.
> 
> This is because the schema plugin will check if you have a customized 
> producer and not overwrite or try to replace it with an empty one.
> 
> You will need to add a Comparator and a Normalizer for your new 
> matching rule too.  See the respective SystemCOmparatorProducer and 
> SystemNormalizerProducers.  These things register comparators and 
> normalizers for pmatchingRules using the OID of the matchingRule they 
> are associated with.
> 
> HTH,
> Alex
> 
> 


Mime
View raw message