This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm using Apache DS 1.5.5 version.
As part of my new requirement I want to add a new attribute called "groupMembership" to the "inetOrgPerson" schema.
But i did not find any .schema files in the installation.
So can anyone suggest me the answers for the following questions.
1.How to add a new attribute to the existed schema file for ex: inetOrgPerson
2.where to place a new schema file and object class file.
3.And 3rd one is, I want to add a new domain like, o=xxx, dc=test, dc=com. In which file i need to add these new domain.
1. If you want to change the scheme to add new attributes or classes you need to add records under ou=schema. Just add a new record under ou=attributeTypes and then you can use the new attribute.
2. You can add records by using Apache Directory Studio (or any other LDAP client) and selecting new entry, or by importing files. You don't add entries to schema by placing some file somewhere.
3. If you want to add a new domain you need to make a new partition in the %APACHEDS%/conf/server.xml and then make a new Context entry in the apache directory studio.
Hope this helps,
Joined: Sep 17, 2009
Thanks for your reply. I didnot understand your 1st point.
I mean in which file do i need to add ou=xxx.
my scenario is just i want to add an attribute named "groupMembership" to "inetOrgPerson" schema.
I'm using ldap admin as ldap client.
do i need to add it through client or in any other configuration file which is available in Apache DS installation ?
Joined: Apr 22, 2009
Schema is not a separate file it is just metadata, so you add attributes and objectClasses to it like any other data with a client.
Here is an example of how we add our custom attributes to the schema:
dn: m-oid=188.8.131.52.4.1.27184.108.40.206, ou=attributeTypes, cn=bbb, ou=schema
m-description: DN principala
We have this in a ldif file that we import with the apache directory studio. This adds the record to the schema and makes the attribute visible.