LDAP-UX Client Services B.04.10 Administrator's Guide (edition 7)
An Example of Defining Directory Specific Information in the Object Class Definition
Directory specific information can be specified in the object class definitions as well as in optional
and mandatory attributes.
The following is an example of the object class definition with directory specific information
using the <dsSpecific> tag and XML attributes, not and only:
Line 1: <objectClassDefinition>
Line 2: <oid>1.23.456.7.89101112.1.314.1.51.7<oid>
Line 3: <name>sampleObject</name>
Line 4: <must only="ads">serverRole</must>
Line 5: <must not="ads">userPassword</must>
Line 6: <may>sampleAttribute</may>
Line 7: <dsSpecific vendor="ads">
Line 8: <field attr="systemOnly">TRUE</field>
Line 9 </dsSpecific>
Line 10: </objectClassDefinition>
For the above example, on Windows Active Directory Server, this object class has a mandatory
attribute type, serverRole, and an optional attribute type, sampleAttribute. On all other
types of directory servers, this object class has a mandatory attribute type, userPassword and
an optional attribute, sampleAttribute. On Windows Active Directory Server, this object class
has the systemOnly attribute set to TRUE.
NOTE: Directory-specific attributes and values specified in <dsSpecific> fields are not
validated. You need to ensure that the values specified in these fields are legitimate and adhere
to the LDAP directory server rules. The field value must be specified exactly as it is to appear in
the attribute type or object class definition, using single and double quotes as applicable.
Attributes and values specified in the <dsSpecific> fields override the default attribute type
and object class configurations. For example, on Windows Active Directory Server the default
value of the isDefunct attribute is set to False. If the following <dsSpecific> attribute is
defined, the specific setting will override the default setting and will result in the element being
defunct.
<dsSpecific vendor="ads">
<field attr="isDefunct">TRUE</field>
</dsSpecific>
156 Command and Tool Reference