Configuring the Directory Server
Configuring Security in the Directory Server
Populating a Stand-Alone Directory Server With Data
Importing Data Using import-ldif
To Import Data in Offline Mode
To Replace Existing Data During an Offline Import
To Append Imported Data to Existing Data
To Import Fractional Files by Using Filters
To Include or Exclude Attributes During Import
To Import a Compressed LDIF File
To Record Rejected or Skipped Entries During Import
To Import Data From a MakeLDIF Template
To Run an Import in Online Mode
Exporting Data Using export-ldif
To Export Part of a Back End by Using Filters
To Include or Exclude Attributes During Export
To Export to LDIF and Then Compress the File
To Run an Export in Online Mode
Importing and Exporting Entries With the Control Panel
To Import Entries With the Control Panel
To Export Entries to an LDIF File With the Control Panel
Creating MakeLDIF Template Files
Overview of the Backup and Restore Process
To Back Up All Back Ends with Encryption and Signed Hashes
To Perform an Incremental Backup on All Back Ends
To Back Up a Specific Back End
To Perform an Incremental Backup on a Specific Back End
To Schedule a Backup as a Task
Backing Up the Server Configuration
Backing Up for Disaster Recovery
To Back Up the Directory Server For Disaster Recovery
To Restore a Back End From Incremental Backups
To Schedule a Restore as a Task
To Restore the Configuration File
To Restore a Directory Server During Disaster Recovery
Restoring Replicated Directory Servers
Backing Up and Restoring Directory Data With the Control Panel
To Back Up Data With the Control Panel
To Restore Data With the Control Panel
Overview of the ldapsearch Command
ldapsearch Location and Format
To Search for Specific User Attributes
To Perform a Search With Base Scope
To Perform a Search With One-Level Scope
To Perform a Search With Subtree Scope
To Return Attribute Names Only
To Return User Attributes Only
To Search For Specific Object Classes
To Return a Count of All Entries in the Directory
To Perform a Search With a Compound Filter
To Perform a Search Using a Filter File
To Limit the Number of Entries Returned in a Search
Using Advanced Search Features
Searching for Special Entries and Attributes
To Search for Operational Attributes
To Search the Configuration Entry
To Search the Monitoring Entry
To Search Over SSL With Blind Trust
To Search Over SSL Using a Trust Store
To Search Over SSL With No Trust Store
To Search Over SSL Using a Keystore
To Search Using SASL With DIGEST-MD5 Client Authentication
To Search Using SASL With the GSSAPI Mechanism
To Search Using SASL With the PLAIN Mechanism
To View the Available Controls
To Search Using the Account Usability Request Control
To Search Using the Authorization Identity Request Control
To Search Using the Get Effective Rights Control
To Search Using the LDAP Assertion Control
To Search Using the LDAP Subentry Control
To Search Using the Manage DSA IT Control
To Search Using the Matched Values Filter Control
To Search Using the Password Policy Control
To Search Using the Persistent Search Control
To Search Using the Proxied Authorization Control
To Search Using the Server-Side Sort Control
To Search Using the Simple Paged Results Control
Searching Using the Virtual List View Control
To Search Using the Virtual List View Control
To Search Using Virtual List View With a Specific Target
To Search Using Virtual List View With a Known Total
Searching in Verbose Mode and With a Properties File
To Search Using a Properties File
Adding, Modifying, and Deleting Directory Data
To Add an Entry Using the --defaultAdd Option With ldapmodify
To Add Entries Using an LDIF Update Statement With ldapmodify
To Add an Attribute to an Entry
To Add an International Attribute
To Modify an Attribute With Before and After Snapshots
To Delete an Entry With ldapmodify
To Delete an Entry With ldapdelete
To Delete Multiple Entries by Using a DN File
Configuring Indexes on the Local DB Back End
To Create a New Local DB Index
Managing Indexes With the Control Panel
To Enable or Disable Compact Encoding
To Enable or Disable Entry Compression
Managing Directory Data With the Control Panel
Managing Entries With the Control Panel
To Display A List of All Directory Entries
To Add a New Entry With the Control Panel
To Add a New Entry From an LDIF Specification With the Control Panel
To Change the Values of an Entry's Attributes With the Control Panel
To Delete an Entry With the Control Panel
Managing Base DNs With the Control Panel
Copying an Entry's DN to the Clipboard
Deleting a Back End With the Control Panel
To Delete a Back End With the Control Panel
Selecting a View of Entry Data
To Select a View of Entry Data
Ensuring Attribute Value Uniqueness
Overview of the Unique Attribute Plug-In
Configuring the Unique Attribute Plug-In Using dsconfig
To Ensure Uniqueness of the Value of the uid Attribute
To Ensure Uniqueness of the Value of Any Other Attribute
Replication and the Unique Attribute Plug-In
Configuring Virtual Attributes
To List the Existing Virtual Attributes
To Create a New Virtual Attribute
To Enable or Disable a Virtual Attribute
To Display the Configuration of a Virtual Attribute
Sun OpenDS Standard Edition supports collation rules that match entries and can be used with the server-side sorting control to sort search results. The collation rule is specified in the search filter as a matching rule, delimited by colons, as shown here:
locale.matchingRule
where:
locale is specified in one of the following ways
Locale OID
Locale character suffix (such as ar, en, or fr-CA).
See Supported Collation Rules at the end of this section for a list of supported locales, their OIDs, and tags.
matchingRule can specified as either a numeric suffix or a character suffix appended to the locale, as listed in Table 1.
Note - If the locale is specified by its OID, then the matching rule must be specified by its numeric suffix. In this case, the matching rule cannot be specified by the character suffix.
|
Equality is the default matching rule. That is, when no matching rule suffix is specified, the collation rule uses equality matching rule. The two following examples are equivalent and specify the English collation rule and the equality matching rule, but the second example specifies the equality matching rule explicitly with the .eq suffix:
"cn:en:=sanchez" "cn:en.eq:=sanchez"
The next example shows the same search filter, but specified using the locale's character suffix and the matching rule's numeric code:
"cn:en.3:=sanchez"
The following example shows the same search filter specified using the locale OID and the matching rule numeric suffix:
"cn:1.3.6.1.4.1.42.2.27.9.4.34.1.3:=sanchez"
The following examples specify the same search filter but with a Spanish collation rule.
"cn:es.eq:=sanchez" "cn:1.3.6.1.4.1.42.2.27.9.4.49.1.3:=sanchez" "cn:es.3:=sanchez"
The following examples specify a similar search filter that uses a greater-than matching rule with the Spanish collation rule.
"cn:es.gt:=sanchez" "cn:1.3.6.1.4.1.42.2.27.9.4.49.1.5:=sanchez" "cn:es.5:=sanchez"
The following search uses a filter with the en (en-US) locale OID to perform an equality search to return any entry with a cn value of sanchez:
$ ldapsearch -D "cn=directory manager" -w password -b "o=test" \ "cn:1.3.6.1.4.1.42.2.27.9.4.34.1:=sanchez"
The following filters return the same results:
"cn:en:=sanchez"
"cn:en.3:=sanchez"
"cn:en.eq:=sanchez"
"cn:1.3.6.1.4.1.42.2.27.9.4.34.1.3:=sanchez"
The following search uses a filter with the es (es-ES) locale and performs a less-than search and returns the entry with a departmentnumbervalue of abc119:
$ ldapsearch -D "cn=directory manager" -w password -b "o=test" \ "departmentnumber:1.3.6.1.4.1.42.2.27.9.4.49.1.1:=abc120"
The following filters return the same results:
"departmentnumber:es.1:=abc120"
"departmentnumber:es.lt:=abc120"
The following search uses a filter with the es (es-ES) locale and performs a less-than-or-equal-to search that returns the entry with a departmentnumbervalue of abc119:
$ ldapsearch -D "cn=directory manager" -w password -b "o=test" \ "departmentnumber:1.3.6.1.4.1.42.2.27.9.4.49.1.2:=abc119"
The following filters return the same results:
"departmentnumber:es.2:=abc119"
"departmentnumber:es.lte:=abc119"
The following search uses a filter with the fr (fr-FR) locale and performs a greater-than-or-equal-To search that returns an entry with a departmentnumber value of abc119
$ ldapsearch -D "cn=directory manager" -w password -b "o=test" \ "departmentnumber:fr.4:=abc119"
The following filters return the same results:
"departmentnumber:1.3.6.1.4.1.42.2.27.9.4.76.1.4:=abc119"
"departmentnumber:fr.gte:=abc119"
The following search uses a filter with the fr (fr-FR) locale and performs a greater-than search:
$ ldapsearch -D "cn=directory manager" -w password -b "o=test" \ "departmentnumber:fr.5:=abc119"
The above search should not return an entry with a departmentnumber value of abc119.
The following filters return the same results:
"departmentnumber:1.3.6.1.4.1.42.2.27.9.4.76.1.5:=abc119"
"departmentnumber:fr.gt:=abc119"
The following search uses a filter with the en (en-US) locale and performs a substring search that returns an entry with an sn value of “Quebec”:
$ ldapsearch -D "cn=directory manager" -w password -b "o=test" \ "sn:en.6:=*u*bec"
The following filters return the same results:
"sn:1.3.6.1.4.1.42.2.27.9.4.34.1.6:=*u*bec"
"sn:en.sub:=*u*bec"
The following table lists the internationalization locales supported by Sun OpenDS Standard Edition and the Sun JVM, alphabetized by character suffix.
|