Thank you very much, that worked for me.
But there is one problem left - I have a custom partition that I create
and add to the directory service like this:
DefaultDirectoryServiceFactory factory = new
DefaultDirectoryServiceFactory();
factory.init("Test");
service = factory.getDirectoryService();
Partition partition = new MyPartition();
partition.setId("My");
partition.setSuffixDn(new Dn("dc=mycompany,dc=com"));
service.addPartition(partition);
The getSuffixDn() method of MyPartition just returns the Dn that was set
with setSuffixDn.
But when I connect to my ldap server with ADS, I cannot see my
"dc=mycompany,dc=com" entries below the root DSE. And ldap searches
against "dc=mycompany,dc=com" are responded by my custom partition, but
they result in exceptions on the server side.
In one sentence: do you have a simple sample of a custom partition in
the new 2.0.0 flavour?
--
Best regards,
Wolfgang Müller
- - - - - - -
SCOOP Software GmbH
Development - Consulting - Evaluation
[email protected]
www.scoop-software.de
Tel.: +49 221 801916-116
Fax: +49 221 801916-1716
Mobile: +49 175 5901011
Sitz der Gesellschaft: Köln
Handelsregister: Köln
Handelsregisternummer: HRB 36625
Geschäftsführer:
Dr. Oleg Balovnev
Frank Heinen
Roland Scheel
Dr. Wolfgang Reddig
Am 06.02.2013 16:33, schrieb Kiran Ayyagari:
> take a look at this[1] and let us know if you still run into any issues
>
> [1]
> http://svn.apache.org/repos/asf/directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java
> On Wed, Feb 6, 2013 at 8:54 PM, Wolfgang Müller <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi there,
>
> I am trying since two days to port a java application using an 1.5.7
> embedded Apache Ldap server to 2.0.0.
> I found no documentation and no examples how to write an embedded Apache
> Ldap server with 2.0.0 on the ApacheDS site, neither on the whole
> internet.
> Thus my new code is a mix of guesses and some code snippets I googled,
> but it always fails when it comes to schema loading.
>
> Does anyone of you have a sample embedded Ldap server class that I could
> use as a starting point?
>
> Thanks a lot!
>
> --
> Best regards,
> Wolfgang Müller
>
>
> - - - - - - -
> SCOOP Software GmbH
> Development - Consulting - Evaluation
> [email protected] <mailto:[email protected]>
> www.scoop-software.de <http://www.scoop-software.de>
> Tel.: +49 221 801916-116 <tel:%2B49%20221%20801916-116>
> Fax: +49 221 801916-1716 <tel:%2B49%20221%20801916-1716>
> Mobile: +49 175 5901011 <tel:%2B49%20175%205901011>
>
> Sitz der Gesellschaft: Köln
> Handelsregister: Köln
> Handelsregisternummer: HRB 36625
> Geschäftsführer:
> Dr. Oleg Balovnev
> Frank Heinen
> Roland Scheel
> Dr. Wolfgang Reddig
>
>
>
>
> --
> Kiran Ayyagari
> http://keydap.com