Re: [ANNOUNCE] Apache Directory LDAP API 1.0.0-M15 released
Awesome ! Thank you Pierre-Arnaud, Emmanuel ! :) Hendy On Tue, Jan 29, 2013 at 9:24 PM, Pierre-Arnaud Marcelot pamarce...@apache.org wrote: The Apache Directory Team is proud to announce the availability of the 1.0.0-M15 version of the Apache Directory LDAP API. The Apache Directory LDAP client API is an ongoing effort to provide an enhanced LDAP API, as a replacement for JNDI and the existing LDAP API (jLdap and Mozilla LDAP API). This is a schema aware API, with some convenient ways to access a LDAP server. This API is not only targeting the Apache Directory Server, but should work pristine with any LDAP server. It's also an extensible API : new Controls, schema elements and network layer could be added or used in the near future. It's also OSGi capable. Here are the release notes for Apache Directory LDAP API 1.0.0-M15: * [DIRAPI-112] - Review Package Names Feel free to experiment, we highly appreciate your feedback ! Website : http://directory.apache.org/api Download : http://directory.apache.org/api/downloads.html User's Guide : http://directory.apache.org/api/user-guide.html The Apache Directory Team -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
Re: New site : we are live !
Congrats ! Whoo. On Wed, Jan 9, 2013 at 11:17 AM, Emmanuel Lécharny elecha...@gmail.comwrote: Hi guys, the new site has been activated. There are most certainly some breakages, please be patient, we will do our best to fix them asap. If you find some bad links, errors, etc, feel free to report them on https://issues.apache.org/jira/browse/DIR-292. Thanks ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
Re: ApacheDS 2.0.0-M7 index problem
Hi Emmanuel, I've upgraded to 2.0.0-M8 and reimported all data. However, searches of uniqueMember in groupOfUniqueNames still behave erratically as before. Sometimes the search returns correct results, sometimes partially, sometimes returns zero results. Is this still an issue? Shall I create a JIRA? Thank you. Hendy On Thu, Jul 26, 2012 at 8:41 PM, Emmanuel Lécharny elecha...@gmail.comwrote: Le 7/26/12 12:21 PM, Hendy Irawan a écrit : Hi, I'm having issues with attributes in ApacheDS, for example uniqueMember in a groupOfUniqueNames entry. Which I think has something to do with indexes. LDAP searches return empty, although the query is good. After modifying the affected uniqueMember (i.e. to a dummy value, then again to the actual value), the entry is recognized correctly for search results. Is there a known bug in the index subsystem ? Yes. We have fixed it in trunk. In the meantime, as workaround, is there a way to tell ApacheDS to rebuild indexes ? The only workaround I know of is to build the trunk... :/ -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
How to encode {SSHA} userPassword (or other encodings) ?
Hi, How to encode {SSHA} userPassword (or other encodings) using Apache LDAP API ? Thank you. -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
Re: How to encode {SSHA} userPassword (or other encodings) ?
Thank you Emmanuel, I've filed https://issues.apache.org/jira/browse/DIRSHARED-140 Hendy On Wed, Oct 24, 2012 at 10:20 PM, Emmanuel Lécharny elecha...@gmail.comwrote: Le 10/24/12 5:13 PM, Kiran Ayyagari a écrit : you can use encryptPassword() method of PasswordUtil class but this class is not part of the client API, it is present in the apacheds-core-api module That would worth a JIRA, we can add such a feature in the API I guess... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
ApacheDS 2.0.0-M7 index problem
Hi, I'm having issues with attributes in ApacheDS, for example uniqueMember in a groupOfUniqueNames entry. Which I think has something to do with indexes. LDAP searches return empty, although the query is good. After modifying the affected uniqueMember (i.e. to a dummy value, then again to the actual value), the entry is recognized correctly for search results. Is there a known bug in the index subsystem ? In the meantime, as workaround, is there a way to tell ApacheDS to rebuild indexes ? -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
Re: ApacheDS 2.0.0-M7 index problem
Thank you Emmanuel! Nice to know its already fixed :-) Hendy On Jul 26, 2012 8:42 PM, Emmanuel Lécharny elecha...@gmail.com wrote: Le 7/26/12 12:21 PM, Hendy Irawan a écrit : Hi, I'm having issues with attributes in ApacheDS, for example uniqueMember in a groupOfUniqueNames entry. Which I think has something to do with indexes. LDAP searches return empty, although the query is good. After modifying the affected uniqueMember (i.e. to a dummy value, then again to the actual value), the entry is recognized correctly for search results. Is there a known bug in the index subsystem ? Yes. We have fixed it in trunk. In the meantime, as workaround, is there a way to tell ApacheDS to rebuild indexes ? The only workaround I know of is to build the trunk... :/ -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
Re: IllegalArgumentException: factory thrown when creating LdapNetworkConnection inside OSGi
Thank you Gokturk ! Much appreciated :-) On Mon, Jul 23, 2012 at 1:22 AM, Göktürk Gezer gokturk.ge...@gmail.comwrote: Hi Hendy, I see you pointed out the cause in jira, and that solves the issue. We're about to switch to OSGI runtime in near future for both the server and the api. Currently we have no documentation for our OSGI extensions, but this situation will change soon and will fix many similar issues. I'll close this issue with your recommendation-1 ( please throw a better exception message (e.g. Cannot find ProtocolCodecFactory, hint: install mvn:org.apache.directory.shared/shared-ldap-net-mina bundle)) Regards, Göktürk On Sun, Jul 22, 2012 at 7:02 PM, Emmanuel Lécharny elecha...@gmail.com wrote: Göktürk, any insight ? Le 7/22/12 12:26 PM, Hendy Irawan a écrit : Hi Apache Directory developers, Creating LdapNetworkConnection throws IllegalArgumentException (in at org.apache.mina.filter.codec.**ProtocolCodecFilter.init(** ProtocolCodecFilter.java:73) ), even after all apache.directory bundles have been started. No problem if outside OSGi. I'm using LdapConnectionPool here but simple LdapNetworkConnection also throws error. Any suggestions / workaround ? I've also filed this as a bug in https://issues.apache.org/**jira/browse/DIRAPI-90 https://issues.apache.org/jira/browse/DIRAPI-90 {code} 2012-07-22 17:16:44,329 | ERROR | rint Extender: 3 | BlueprintContainerImpl | 9 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint container for bundle com.wikindonesia.person org.osgi.service.blueprint.**container.**ComponentDefinitionException: Error when instanciating bean #recipe-6 of class class com.wikindonesia.person.**PersonRepository at org.apache.aries.blueprint.**container.BeanRecipe.** getInstance(BeanRecipe.java:**271)[9:org.apache.aries.**blueprint:0.3.2] at org.apache.aries.blueprint.**container.BeanRecipe.** internalCreate(BeanRecipe.**java:708)[9:org.apache.aries.** blueprint:0.3.2] at org.apache.aries.blueprint.di.**AbstractRecipe.create(** AbstractRecipe.java:64)[9:org.**apache.aries.blueprint:0.3.2] at org.apache.aries.blueprint.**container.BlueprintRepository.** createInstances(**BlueprintRepository.java:219)[** 9:org.apache.aries.blueprint:**0.3.2] at org.apache.aries.blueprint.**container.BlueprintRepository.** createInstance(**BlueprintRepository.java:198)[** 9:org.apache.aries.blueprint:**0.3.2] at org.apache.aries.blueprint.**container.BlueprintRepository.** create(BlueprintRepository.**java:137)[9:org.apache.aries.** blueprint:0.3.2] at org.apache.aries.blueprint.**container.ServiceRecipe.** createRecipe(ServiceRecipe.**java:370)[9:org.apache.aries.** blueprint:0.3.2] at org.apache.aries.blueprint.**container.ServiceRecipe.** createService(ServiceRecipe.**java:278)[9:org.apache.aries.** blueprint:0.3.2] at org.apache.aries.blueprint.**container.ServiceRecipe.** internalGetService(**ServiceRecipe.java:248)[9:org.** apache.aries.blueprint:0.3.2] at org.apache.aries.blueprint.**container.ServiceRecipe.** internalGetService(**ServiceRecipe.java:229)[9:org.** apache.aries.blueprint:0.3.2] at org.apache.aries.blueprint.**container.ServiceRecipe.** getClasses(ServiceRecipe.java:**340)[9:org.apache.aries.** blueprint:0.3.2] at org.apache.aries.blueprint.**container.ServiceRecipe.** register(ServiceRecipe.java:**178)[9:org.apache.aries.**blueprint:0.3.2] at org.apache.aries.blueprint.**container.**BlueprintContainerImpl.** registerServices(**BlueprintContainerImpl.java:**653)[9:org.apache.aries. **blueprint:0.3.2] at org.apache.aries.blueprint.**container.**BlueprintContainerImpl.doRun(** BlueprintContainerImpl.java:**336)[9:org.apache.aries.**blueprint:0.3.2] at org.apache.aries.blueprint.**container.**BlueprintContainerImpl.run(** BlueprintContainerImpl.java:**230)[9:org.apache.aries.**blueprint:0.3.2] at java.util.concurrent.**Executors$RunnableAdapter.** call(Executors.java:471)[:1.6.**0_24] at java.util.concurrent.**FutureTask$Sync.innerRun(** FutureTask.java:334)[:1.6.0_**24] at java.util.concurrent.**FutureTask.run(FutureTask.**java:166)[:1.6.0_24] at java.util.concurrent.**ScheduledThreadPoolExecutor$** ScheduledFutureTask.access$**101(**ScheduledThreadPoolExecutor.** java:165)[:1.6.0_24] at java.util.concurrent.**ScheduledThreadPoolExecutor$** ScheduledFutureTask.run(**ScheduledThreadPoolExecutor.** java:266)[:1.6.0_24] at java.util.concurrent.**ThreadPoolExecutor.runWorker(** ThreadPoolExecutor.java:1110)[**:1.6.0_24] at java.util.concurrent.**ThreadPoolExecutor$Worker.run(** ThreadPoolExecutor.java:603)[:**1.6.0_24
LdapNetworkConnection not thread-safe ?
Hi ApacheDS developers, I'm working on an open source project ( https://github.com/soluvas/ldap-tools ) which uses LdapNetworkConnection using shared v1.0.0-M12. Several threads are running in parallel (using Akka), all using the same LdapNetworkConnection to delete entries. However in some cases it locks up (deadlock? race condition?) and the last logs I get is : ... 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [ldap_cli-akka.actor.default-dispatcher-14] INFO o.soluvas.ldaptools.cli.PersonClear - Deleting uid=setsuna_hinagiku,ou=users,dc=berbatik,dc=com 22:17:17 [ldap_cli-akka.actor.default-dispatcher-24] INFO o.soluvas.ldaptools.cli.PersonClear - Deleting uid=rumah_amal_salman_itb,ou=users,dc=berbatik,dc=com 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [ldap_cli-akka.actor.default-dispatcher-18] INFO o.soluvas.ldaptools.cli.PersonClear - Deleting uid=setyo_rini,ou=users,dc=berbatik,dc=com 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [ldap_cli-akka.actor.default-dispatcher-1] INFO o.soluvas.ldaptools.cli.PersonClear - Deleting uid=pipit_nugroho,ou=users,dc=berbatik,dc=com 22:17:17 [ldap_cli-akka.actor.default-dispatcher-15] INFO o.soluvas.ldaptools.cli.PersonClear - Deleting uid=yuliana_riris_basaria,ou=users,dc=berbatik,dc=com 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [ldap_cli-akka.actor.default-dispatcher-16] INFO o.soluvas.ldaptools.cli.PersonClear - Deleting uid=setia_budi,ou=users,dc=berbatik,dc=com 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 I also experience similar issues doing concurrent add()s. Is LdapNetworkConnection meant to be thread-safe? Or should I just use separate LdapConnection for each thread? -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
Cannot delete entry - ldap_delete: Operation not allowed on non-leaf (66) - NOT_ALLOWED_ON_NON_LEAF: failed for MessageType : DEL_REQUEST -- Re: LdapNetworkConnection not thread-safe ?
Hi, Thank you for the advice. I've filed a JIRA for thread-safety issue here https://issues.apache.org/jira/browse/DIRSHARED-135 For the time being I'm happy with a workaround. However, I experienced a more serious issue, that I cannot delete an entry, also not able to rename it. Seems like I managed to make the partition inconsistent in some way. I filed the issue here : https://issues.apache.org/jira/browse/DIRSERVER-1733 On Wed, Jun 27, 2012 at 10:59 PM, Emmanuel Lécharny elecha...@gmail.comwrote: Le 6/27/12 5:23 PM, Hendy Irawan a écrit : Hi ApacheDS developers, I'm working on an open source project ( https://github.com/soluvas/**ldap-toolshttps://github.com/soluvas/ldap-tools) which uses LdapNetworkConnection using shared v1.0.0-M12. Several threads are running in parallel (using Akka), all using the same LdapNetworkConnection to delete entries. It's not necessarily a good idea to use a single connection in many threads. Think about it as if they where JDBC connections. Note that it should be supported, as the response are associated with a request ID, which is incremented everytime you send a new request (and the responses are associated with the requestID, so we should not have a problem here.) I suggest you fill a JIRA expliciting the problem, we will investigate. In the mean ime, I assume it's safer to use one connection per thread. However in some cases it locks up (deadlock? race condition?) and the last logs I get is : ... 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [ldap_cli-akka.actor.default-**dispatcher-14] INFO o.soluvas.ldaptools.cli.**PersonClear - Deleting uid=setsuna_hinagiku,ou=users,**dc=berbatik,dc=com 22:17:17 [ldap_cli-akka.actor.default-**dispatcher-24] INFO o.soluvas.ldaptools.cli.**PersonClear - Deleting uid=rumah_amal_salman_itb,ou=**users,dc=berbatik,dc=com 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [ldap_cli-akka.actor.default-**dispatcher-18] INFO o.soluvas.ldaptools.cli.**PersonClear - Deleting uid=setyo_rini,ou=users,dc=**berbatik,dc=com 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [ldap_cli-akka.actor.default-**dispatcher-1] INFO o.soluvas.ldaptools.cli.**PersonClear - Deleting uid=pipit_nugroho,ou=users,dc=**berbatik,dc=com 22:17:17 [ldap_cli-akka.actor.default-**dispatcher-15] INFO o.soluvas.ldaptools.cli.**PersonClear - Deleting uid=yuliana_riris_basaria,ou=**users,dc=berbatik,dc=com 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [ldap_cli-akka.actor.default-**dispatcher-16] INFO o.soluvas.ldaptools.cli.**PersonClear - Deleting uid=setia_budi,ou=users,dc=**berbatik,dc=com 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 22:17:17 [NioProcessor-2] DEBUG o.a.m.f.codec.**ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1 I also experience similar issues doing concurrent add()s. Is LdapNetworkConnection meant to be thread-safe? Or should I just use separate LdapConnection for each thread? -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
How to Escape LDAP Filter Query ?
Dear Apache Directory users, How do I escape an LDAP filter query ? e.g. String searchTerm = ...; // from user input String filter = ((objectclass=person)(cn=* + escapeFunction(searchTerm) + *)); What is this escapeFunction ? -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
Re: questions about embedding ApacheDS
Hi, You're welcome Alex :-) Oh, this is probably helpful too: https://github.com/soluvas/soluvas-framework/tree/master/apacheds I use it in my OpenShift Express apps because I can't use a dedicated LDAP Server, so I embed ApacheDS inside the webapp. Thanks to ApacheDS developers for making this happen. :-) Hendy On Fri, Apr 13, 2012 at 1:59 PM, Alex Karasulu akaras...@apache.org wrote: On Thu, Apr 12, 2012 at 8:48 PM, Hendy Irawan he...@soluvas.com wrote: Check out this project : https://github.com/soluvas/dsembed :-) Nice job Hendy! I just took a look at your github project :-). -- Best Regards, -- Alex -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
Re: questions about embedding ApacheDS
Check out this project : https://github.com/soluvas/dsembed :-) Hendy On Fri, Apr 13, 2012 at 12:12 AM, Popova, Marina mpop...@emptoris.comwrote: Hello, I'm trying to embed ApacheDS server into my JEE application and have a few questions: 1. in the example of the embedded server you have specified that one of the dependencies is the apacheds-all-1.5.7.jar. I also see this jar as a dependency in the pom.xml that is supplied in the downloadable example. However, I cannot find this jar anywhere in the ApacheDS lib directory (of of the installation root). I can see quite a few other apacheds-xxx jars. Where could I get this jar , or do I need to pick other jars instead? I also tried to just add all jars from the apacheds/lib directory - but still cannot compile the sample class as it cannot find a few core classes... 2. As I understand, all entries I create in the server are persisted in the file system, right? Are they persisted between the server startups, when the server is started/stopped from a Java app? Is it possible to persist this content in the RDB, rather than file system? 3. my users/orgs are already represented in some form in my RDB. As I understand, some LDAP servers can directly feed off of the DB tables with some mapping required... What are the options for that with ApacheDS? 4. I'm also having trouble subscribing to the list with a different email - when I try to subscribe with my yahoo email - all emails are getting bounced back with a message that they were rejected as spam If you could point me to relevant documentation - would be great. Thanks! Marina -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
Problem Importing LDIF files : ordering of entries
Hi, I'm having difficulties importing the LDIF that is exported by Apache Directory Studio. It seems it is because the order is somewhat not consistent. ApacheDS expects the entries to be sorted from root to leaf. So it doesn't treat the entire LDIF as one bundle but as individual entries. How to solve this problem ? -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung
How to Embed ApacheDS Server 2.0.0-M6 in a Java webapp
Hi ApacheDS developers, I've been trying to embed ApacheDS 2.0 into Java webapp but have not been successful yet. I also am not able to find documentation so I'm just guessing so far. I've made the entire example project open source here : https://github.com/soluvas/dsembed So anyone can checkout the project and join. So far this what I tried : LdapServer ldapServer = new LdapServer(); ds = new ApacheDS(ldapServer); InstanceLayout layout = new InstanceLayout(/tmp/dsembed_data); ds.getDirectoryService().setInstanceLayout(layout); DefaultSchemaManager schemaManager = new DefaultSchemaManager(); ds.getDirectoryService().setSchemaManager(schemaManager); SchemaPartition schemaPartition = new SchemaPartition(schemaManager); ds.getDirectoryService().setSchemaPartition(schemaPartition); LdifPartition systemPartition = new LdifPartition(schemaManager); systemPartition.setId(system); systemPartition.setSuffixDn(new Dn(ou=system)); ds.getDirectoryService().setSystemPartition(systemPartition); ds.startup(); Howevr it still causes this error : Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_217 Entry ou=schema contains no objectClass attribute: Entry dn[n]: ou=schema objectclass: organizationalUnit objectclass: top ou: schema entryUUID: 599d6437-409b-4918-a20c-3efebe3e8f4d creatorsname: uid=admin,ou=system entryCSN: 20120325184926.328000Z#00#000#00 at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:77) [apacheds-core-api-2.0.0-M6.jar:2.0.0-M6] at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1821) [apacheds-core-2.0.0-M6.jar:2.0.0-M6] at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1258) [apacheds-core-2.0.0-M6.jar:2.0.0-M6] at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:166) [apacheds-server-jndi-2.0.0-M6.jar:2.0.0-M6] at org.soluvas.dsembed.DirectoryEngine.init(DirectoryEngine.java:78) [classes:] ... 43 more Any help will be appreciated. Thank you ! -- Hendy Irawan - on Twitter http://twitter.com/hendybippo - on LinkedInhttp://id.linkedin.com/in/hendyirawan Web Developer | Bippo Indonesia http://www.bippo.co.id/ | Akselerator Bisnis | Bandung