LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
For this release of LDAP-UX Client Services, the setup tool has not been integrated with
ldapschema. You will continue to use the setup tool to extend the directory server schema with
printer, public key and automount schemas. For Windows Active Directory Server, you will continue
to run the setup tool to extend the directory server with the automount schema.
9.5.2.1 Operations performed by the schema extension utility
The schema extension utility, ldapschema, supports the following two modes of operation:
1. Query Schema Status
Based on the set of attribute types and object classes defined in the input schema definition
file, this tool queries their status on the directory server schema without applying any changes
to the LDAP directory server. ldapschema determines whether new attribute types and object
classes specified in the input schema file are already defined on the directory server. This tool
also determines if definitions installed on the LDAP directory server match definitions specified
in the schema file being queried.
2. Extend a Directory Server with Schema Definitions
This utility supports the extend mode of operation. It can add attribute types and object classes
defined in the input schema file that are not yet installed on the LDAP server to that server's
schema. Only new valid attribute types and object classes can be added to the LDAP server
schema. To execute the ldapschema utility in the extend mode, most LDAP directory servers
require specifying the distinguished name and password of an administrator who has
permissions to modify the schema on that server.
9.5.2.2 DTD and XML files used by ldapschema
The ldspschema tool uses the following XML files to perform its operations:
• LDAP Schema Definition Files
This tool queries and extends the LDAP directory server schema with the input schema definitions
stored in an XML schema definition file. Several predefined files (such as rfc3712.xml and
rfc2256.xml, for example) are stored in the /etc/opt/ldapux/schema directory. But
the schema definition file may be stored in any directory with any file name. The file name is
passed to the tool as one of the required arguments. For more information about the schema
definition file, see Section 9.5.4 (page 365).
• DTD Template
LDAP-UX provides the predefined DTDtemplate, /etc/opt/ldapux/schema/schema.dtd.
Each schema definition file must adhere to DTD template specified in /etc/opt/ldapux/
schema/schema.dtd file. Every XML file used by the ldapscheam utility must include
/etc/opt/ldapux/schema/schema.dtd as its DTD. This DTD file is used by ldapschema
to validate new attribute types and object classes before they can be added to the LDAP
directory server. For more information about the schema definition file, see Section 9.5.4
(page 365).
WARNING! Do not modify the schema.dtd file, or create your own DTD template file.
Modifying this file will cause ldapschema to fail.
• Supported Matching Rules and Syntaxes File
The ldapschema utility performs LDAP directory server schema search to obtain the complete
list of schema syntaxes and matching rules that the directory server supports. HP-UX Directory
Server and Red Hat Directory Server provide a list of supported matching rules and syntaxes
as part of the schema search.
However, some directory servers (such as Windows Active Directory Server) do not provide
a list of supported syntaxes and matching rules as part of the directory server schema search.
360 Command and tool reference