Tuesday, August 5, 2014

OpenLDAP: Adding inetOrgPerson Object Class

1. Shutdown OpenLDAP.

2. Locate the path of the "inetorgperson.schema" file (E.g. /usr/local/etc/openldap/schema). At the top of the "slapd.conf" file (E.g. Location = /usr/local/etc/openldap) include the following lines:

include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema

Adjust the location of the schema files accordingly. The "inetorgperson.schema"file requires "core.schema" and "cosine.schema" files (These files should be in the same directory as the "inetorgperson.schema" file).

3. Start OpenLDAP by executing the slapd script (E.g. Location = /usr/local/libexec).

4. Verify you are able to create a user with the inetOrgPerson object class and set attributes associated with object class. 

inetOrgPerson Object Class via Apache Directory Studio Schema Browser

User with inetOrgPerson Object Class assigned

No comments:

Post a Comment