Embedded Apache DS as proxy

2014-09-22 Thread Sebastian Oerding
Hello again, I tried to use an embedded Apache DS with a self written interceptor as (kind of) a proxy. Actually I have to "parse" incoming requests to request the desired data from a database. However I'm struggling doing so. 1) I do not get the complete request if parsing the request, for

Re: Embedded Apache DS as proxy

2014-09-22 Thread Kiran Ayyagari
On Mon, Sep 22, 2014 at 8:02 PM, Sebastian Oerding < sebastian.oerd...@robotron.de> wrote: > Hello again, > > I tried to use an embedded Apache DS with a self written interceptor as > (kind of) a proxy. Actually I have to "parse" incoming requests to request > the desired data from a database. Ho

Re: Embedded Apache DS as proxy

2014-09-23 Thread Sebastian Oerding
Hello, Am 22.09.2014 17:13, schrieb Kiran Ayyagari: hard to tell without seeing your code, but this issue is not related to instance layout. hier is a shortened version of the code (together with JUnit test) which results in the previously mentioned error: package ldap; import java.util

Re: Embedded Apache DS as proxy

2014-09-25 Thread Kiran Ayyagari
I didn't find anything wrong with the below given code (I tested with "ou=system" partition) I believe you included your custom interceptor in the below code while running, if that is the case then I need to see your custom interceptor's code as well to figure out what is causing the below mention

Re: Embedded Apache DS as proxy

2014-09-25 Thread Sebastian Oerding
Hello, I used exactly the shown code, disabling the Interceptor (by removing the code which includes it) and get the error previously mentioned. To make it more clear: The provided code is the minimal code or close to the minimal code which produced the error on my machine. Maybe I could even

Re: Embedded Apache DS as proxy

2014-09-26 Thread Kiran Ayyagari
On Fri, Sep 26, 2014 at 11:16 AM, Sebastian Oerding < sebastian.oerd...@robotron.de> wrote: > Hello, > > I used exactly the shown code, disabling the Interceptor (by removing the > code which includes it) and get the error previously mentioned. > To make it more clear: The provided code is the mi

Re: Embedded Apache DS as proxy

2014-09-29 Thread Sebastian Oerding
Hello, thanks for the help provided thus far. however I still struggling with the Apache DS. I tried to add a partition with private void addPartition(DirectoryService service) { AvlPartition partition = new AvlPartition(service.getSchemaManager()); partition.setId("smpki")

Re: Embedded Apache DS as proxy

2014-09-29 Thread Emmanuel Lécharny
Le 29/09/14 10:08, Sebastian Oerding a écrit : > Hello, > > thanks for the help provided thus far. however I still struggling with > the Apache DS. I tried to add a partition with > > private void addPartition(DirectoryService service) { > > AvlPartition partition = new > AvlPartition(servi

Re: Embedded Apache DS as proxy

2014-09-29 Thread Kiran Ayyagari
On Mon, Sep 29, 2014 at 1:38 PM, Sebastian Oerding < sebastian.oerd...@robotron.de> wrote: > Hello, > > thanks for the help provided thus far. however I still struggling with the > Apache DS. I tried to add a partition with > > private void addPartition(DirectoryService service) { > > Avl

Re: Embedded Apache DS as proxy

2014-09-29 Thread Sebastian Oerding
Hello, I made some progress with the code Kiran provided. However now everything is fine until I add my Interceptor. When my interceptor extends BaseInterceptor I get the problem as desribed in http://markmail.org/message/pjqwd5hdqa2puqps#query:+page:1+mid:mybcrygmh6vg57po+state:results Fo

Re: Embedded Apache DS as proxy

2014-09-29 Thread Sebastian Oerding
Hello, I tried adding the attribute types / object class at first with the LdifFileLoader using new LdifFileLoader(this.directoryService.getAdminSession(), ldifFile).execute(); in my interceptor and the LDIF file dn: m-oid=2.5.29.14, ou=attributetypes, cn=other, ou=schema changetype: add m

Re: Embedded Apache DS as proxy

2014-09-30 Thread Sebastian Oerding
I have further investigated that adding the my self defined attribute types / object class to the embedded Apache DS fails. The invocation of this.directoryService.getSchemaManager().add(revocationAttribute); returns false which indicates that the attribute has not been added. But I have no id

Re: Embedded Apache DS as proxy

2014-10-07 Thread Sebastian Oerding
Hi, I've written a minimal ASN 1 parser / LDAP server implementation capable of the stuff we need. Hence I will not write to this thread in the next time while still being stuck with the Apache DS. However I would be very glad if someone can tell me what I'm doing wrong and I can replace my i