directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: ApacheDS embedded Ldap server example?
Date Fri, 08 Feb 2013 16:07:00 GMT
On Fri, Feb 8, 2013 at 5:20 PM, Wolfgang Müller <wmueller@scoop-gmbh.de>wrote:

> 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);
>
> this looks fine

> 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.
>
> do you see the value "dc=mycompany,dc=com" in "namingContexts" attribute
of RootDSE entry?
if yes, then your partition is added. To see and use your partition the
context entry for "dc=mycompany,dc=com" needs to be added

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
> wmueller@scoop-gmbh.de
> 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 <wmueller@scoop-gmbh.de
> > <mailto:wmueller@scoop-gmbh.de>> 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
> >     wmueller@scoop-gmbh.de <mailto:wmueller@scoop-gmbh.de>
> >     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
>



-- 
Kiran Ayyagari
http://keydap.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message