directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <>
Subject Re: Problema adding attributes and schema browser not showing them
Date Wed, 18 May 2011 11:53:09 GMT
cn=schema is supposed to be used for querying the schema only, if you
want to add a new attributetype or objectclass the best way is
to create them in the ApacheDS specific meta schema format (you can
use Studio to create them, it is easy) and add them as
normal entries to the respective containers of the schema i.e
if your custom schema name is FOO and you want to add a new attribute
type 'barAT' then the new attributetype entry should be added under
ou=attributetypes,ou=FOO,ou=config . Similarly for objectclasses it
should go under ou=objectclasses

Having said this, ApacheDS also has a feature to update the schema if
the changes are targeted at 'cn=schema', so what you have encountered
might be a bug, am not sure though, but the best way is to directly
make the modifications under the ou=schema partition.

On Wed, May 18, 2011 at 5:13 PM, Manish Kutaula <> wrote:
> Now, seriously this is giving me headaches. i added one attribute
> "secretA" and class "userPerson" using JNDI. The code is given below.
>  Attributes atAttrs = new BasicAttributes(true);
>                atAttrs.put("attributeTypes",
> "( NAME 'secretA' DESC 'answer of secret
> question' EQUALITY caseIgnoreMatch SYNTAX
>                ctx.modifyAttributes("cn=schema", DirContext.ADD_ATTRIBUTE
> , atAttrs);
>                Attributes ocAttrs = new BasicAttributes(true);
>                ocAttrs.put("objectClasses", "(
> NAME 'userPerson' DESC 'An entry which
> represents employee values' SUP inetOrgPerson STRUCTURAL MUST cn MAY (
> secretAnswer ) )");
>                ctx.modifyAttributes("cn=schema", DirContext.ADD_ATTRIBUTE
> , ocAttrs);
> Restarted the server and checked the schema browser in apacheds directory
> studio which donot shows the entries. Previously i added some attributed
> and different class using same program and the schema browser showed them.
> This is kind a frustrating. Is this some bug in apacheds or am i doing
> wrong.
> need help.
> -Manish Kutaula
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you

Kiran Ayyagari

View raw message