• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to add a new attribute to Apache DS

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Team,
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.

Thanks in advance.

Regards,
Ganesh
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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,
Drazen
 
ganesh boil
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Drazen,
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 ?
 
Drazen Grabovac
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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=1.3.6.1.4.1.27132.1.1.4, ou=attributeTypes, cn=bbb, ou=schema
objectClass: metaAttributeType
objectClass: metaTop
objectClass: top
m-description: DN principala
m-name: principalDN
m-oid: 1.3.6.1.4.1.27132.1.1.4
m-supAttributeType: uniqueMember

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.
Regs,
Drazen
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic