LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
9.5.6.1 Example of the directory server definition file
The following example defines two syntaxes with <oid> values of 2.5.5.1 and 2.5.5.2 supported
on Windows ADS:
Line 1: <?xml version="1.0" encoding="UTF-8"?>
Line 2: <!DOCTYPE dsSchemaDefinition SYSTEM "/etc/opt/ldapux/schema/schema.dtd">
Line 3
LINE 4: <dsSchemaDefinition>
LINE 5:
Line 6: <schemaDescription>ADS Syntaxes</schemaDescription>
Line 7:
Line 8: <syntaxDefinition vendor="ads">
LINe 9: <oid>2.5.5.1</oid>
Line 10: <dessc>Distinguished Name</desc>
Line 11: <oMSyntax>127</oMSyntax>
Line 12: </syntaxDefintion>
Line 13:
Line 14: <syntaxDefinition vendor="ads">
LINe 15: <oid>2.5.5.2</oid>
Line 16: <desc>Object Identifier</desc>
Line 17: <oMSyntax>6</oMSyntax>
Line 18: </syntaxDefintion>
LINE 19:
Line 20: </dsSchemaDefintion>
Lines 1-2 are required in every LDAP directory server definition file. LDAP syntax and matching
rule definitions closely follow the format specified in RFC 2252. Values specified for all XML tags
must not be quoted. Only the description field (enclosed by <desc>...<desc> tages) can contain
spaces.
NOTE: Only LDAP syntaxes and matching rules fully supported by the LDAP directory server may
be specified in this file. The vendor, versionGreaterOrEqual and versionLessThan
attributes can be used to specify directory-specific information.
See the /etc/opt/ldapux/schema/schema-ads.xml file for an example of LDAP directory
server definition files.
9.5.6.2 Defining matching rules
Each <syntaxDefinition> tag can contain the following case-sensitive tags, in the order
specified:
<oid> Required. Exactly one numeric id must be specified.
<name> Required. At least one matching rule name must be specified. Do not use quotes
around the name values.
<desc> Optional. At most one description may be specified.
<obsolete> Optional, use it only if it is applicable. Obsolete matching rules cannot be used
in definitions of any other attribute types. At most one obsolete flag may be
specified.
<syntax> Required. The syntax used by the matching rule definition must also be supported
on the LDAP directory server. At most one LDAP syntax value may be specified
per matching rule definition.
9.5.6.3 Defining LDAP syntaxes
Each <syntaxDefinition> tag can contain the following case-sensitive tags, in the order
specified:
<oid> Required. Exactly one numeric id must be specified.
<desc> Optional. At most one description may be specified.
<oMSyntax> Required on Windows ADS only, ignored on other types of LDAP directory servers
372 Command and tool reference