HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)

l
ldapschema(1) ldapschema(1)
Type of Directory Server ds_type
Oracle Internet Directory oracle
Novell e-Directory eDirectory
IBM Tivoli Directory Server ibm
MAC OS X Directory Server mac
Computer Associates DS ca
Sun ONE Directory Server sun
iPlanet Directory Server iPlanet
-V ds_version
Specifies the version of LDAP directory server. The
strcasecmp() function compares the
version specified by this
-V
option and the version defined in the XML files the ldapschema
utility processes.
For example, the schema definition file contains the following object class definition:
<objectClassDefinition>
<oid>1.2.345.6.789</oid>
<name>sampleObject</name>
<must>sampleAttributeA</must>
<must only="rhds" versionGreaterOrEqual="6.2">sampleAttributeB</must>
</objectClassDefinition>
If the ldapschema utility is called with ds_version set to 6.2.1 the sampleObject definition
has two mandatory attributes, sampleAttributeA and sampleAttributeB. The
strcasecmp
("6.2.1", "6.2")
returns a positive integer, so sampleAttributeB is included in the
definition of the object class sampleObject.
On the other hand, if the
ldapschema utility is called with ds_version set to 6.02.1 the sam-
pleObject definition has only one mandatory attribute, sampleAttributeA. The
strcasecmp
("6.02.1", "6.2")
returns a negative integer, so sampleAttributeB is not included in
the definition of the object class sampleObject.
The
ldapschema utility ignores ds_version if the LDAP directory server version-specific
attributes versionGreaterOrEqual
and versionLessThan are not used in the XML
files being processed (that is, the schema definition files, the LDAP directory server definition
file and the mapping rules file). If the XML files include any definitions with
ver-
sionGreaterOrEqual
attribute set, strcasecmp() must return zero or a positive
integer to include directory-specific information in the LDAP schema definition. If the XML
files include any definitions with
versionLessThan
attribute set, strcasecmp() must
return a negative integer to include directory-specific information in the LDAP schema
definition. Also,
versionGreaterOrEqual
and versionLessThan can be used simul-
taneously to define a range of version of the LDAP directory server. See the SPECIFYING
DIRECTORY-SPECIFIC INFORMATION section for details.
Additional Options (Optional)
ldapschema support these additional options:
-h hostname
Specifies the LDAP directory server hostname or IP address.
Default: localhost
-p port Specifies the LDAP directory server TCP port number.
Default: 389 for regular connections, 636 for SSL connections.
-D binddn Specifies the distinguished name of an administrator who has permissions to read and modify
LDAP directory server schema.
-j filename
Reads administrator’s password from the specified file (for simple authentication).
-w - Reads the administrator’s password from the prompt (for simple authentication).
-Z Establishes an SSL-encrypted connection.
-ZZ Starts TLS request.
546 Hewlett-Packard Company 2 HP-UX 11i Version 2: December 2007 Update