开发者

How to add a new field to an open ldap schema

开发者 https://www.devze.com 2023-01-10 11:41 出处:网络
What would be the easiest way to add a n开发者_JS百科ew field to a list of potential fields on an existing ldap schema?

What would be the easiest way to add a n开发者_JS百科ew field to a list of potential fields on an existing ldap schema?

How would this affect existing records?

The field would be added at the deepest level of the dn (each user account).


Typically you can extend the schema of the LDAP server. Specific details depend on the underlying service providing the LDAP. (Active Directory is slightly different than eDirectory, and slightly different than in OpenLDAP or SunOne).

However, common to all those possible LDAP servers is the concept of an Auxiliary Class.

The base schema that comes with the server usually has Structural classes which are ones you can really use for objects. Another is Abstract classes, which are really just placeholders, so that you can have other classes (Say a structural class) inherit from it. Perhaps two Structural classes might inherit from the same abstract class, thus making definitions easier and cleaner.

Finally we come to Auxiliary classes which are probably the most useful. These classes cannot stand on their own, but you can add the class name to the Object Class (objectClass) attribute list, and then the additional attributes defined in the Aux class can be used.

This is the safest, least painful way to extend an LDAP Schema. It does not touch Base schema, nor any of the standard shipping classes. Rather, you have a completely standalone class that you can add to any object you would like, and it is easy to modify.

0

精彩评论

暂无评论...
验证码 换一张
取 消