directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manish Kutaula <>
Subject Problema adding attributes and schema browser not showing them
Date Wed, 18 May 2011 11:43:05 GMT
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);
"( 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 
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

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