You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Ole Ersoy <ol...@gmail.com> on 2007/04/24 05:15:44 UTC

[SCHEMA] Operation Not Supported Exception

Hey Guys,

I noticed something interesting.

If connect with ou=system as my initial context,
I'm allowed to do this:

ctx.createSubcontext("cn=test");

But if I have ou=schema
as my context instead, I get
an operation not supported
exception.

I imagine this could be by design,
but thought I'd report it just
in case.

Cheers,
- Ole


Re: [SCHEMA] Operation Not Supported Exception

Posted by Ole Ersoy <ol...@gmail.com>.
Ah - OK - Cool - Makes sense.

Thanks,
Ole

Alex Karasulu wrote:
> 
> On 4/23/07, *Ole Ersoy* <ole.ersoy@gmail.com 
> <ma...@gmail.com>> wrote:
> 
>     Hey Guys,
> 
>     I noticed something interesting.
> 
>     If connect with ou=system as my initial context,
>     I'm allowed to do this:
> 
>     ctx.createSubcontext("cn=test");
> 
>     But if I have ou=schema
>     as my context instead, I get
>     an operation not supported
>     exception.
> 
>     I imagine this could be by design,
> 
> 
> Yep you're only allowed to create schema objects under ou=schema.  This 
> is a restriction mandated by the schema subsystem.
> 
> Alex
> 

Re: [SCHEMA] Operation Not Supported Exception

Posted by Alex Karasulu <ak...@apache.org>.
On 4/23/07, Ole Ersoy <ol...@gmail.com> wrote:
>
> Hey Guys,
>
> I noticed something interesting.
>
> If connect with ou=system as my initial context,
> I'm allowed to do this:
>
> ctx.createSubcontext("cn=test");
>
> But if I have ou=schema
> as my context instead, I get
> an operation not supported
> exception.
>
> I imagine this could be by design,


Yep you're only allowed to create schema objects under ou=schema.  This is a
restriction mandated by the schema subsystem.

Alex