directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain RICHET <sric...@bee-ware.net>
Subject Howto augment PROGRAMMATICALLY default Schema in APacheDS 1.5.0 ?
Date Thu, 13 Dec 2007 14:06:17 GMT
Hi,

I want to augment the default schema of ApacheDS 1.5.0. in a unit test
(extending org.apache.directory.server.unit.AbstractServerTest)

This should be easy... but it's not

The tip given here fails :
http://directory.apache.org/apacheds/1.5/add-your-first-elements-to-the-schema.html#Addyourfirstelementstotheschema-UsingJNDItoaddtheschemaelementsprogrammatically

The thrown error is :
java.lang.UnsupportedOperationException
    at 
org.apache.directory.server.core.jndi.ServerDirContext.getSchema(ServerDirContext.java:432)
    ...


Here, someone noticed the... bug (?) :
http://www.nabble.com/-ldapserver--schema--How-to-programmatically-extract-schema-information-from-a-server-context-to13524142.html


I didn't find any workaround yet...


Thanks in advance

Mime
View raw message