Perform search operations to data in an LDIF file.
This tool is similar to ldapsearch except that the entries searched exist in an LDIF file as opposed to within an LDAP server.
ldifsearch --baseDN dc=example,dc=com --ldifFile /usr/local/entries.ldif \ "(l=Austin)"
ldifsearch --baseDN dc=example,dc=com --searchScope one \ --ldifFile /usr/local/entries.ldif --ldifFile /usr/local/entries2.ldif \ --outputFile result.ldif '(objectclass=*)'
-V
--version
Description | Display Synchronization Server version information |
-H
--help
Description | Display general usage information |
--help-debug
Description | Display help for using debug options |
Advanced | Yes |
-l {ldifFile}
--ldifFile {ldifFile}
Description | LDIF file containing the data to search. If no files are provided, the data will be read from standard input |
Required | No |
Multi-Valued | Yes |
-b {baseDN}
--baseDN {baseDN}
Description | The base DN for the search. If no base DN is provided, then the root DSE will be used |
Default Value | |
Required | No |
Multi-Valued | Yes |
-s {scope}
--searchScope {scope}
Description | The scope for the search. It must be one of the following: 'base', 'one', 'sub', or 'subordinate'. If a scope is not provided, then 'sub' will be used by default |
Allowed Values |
base one sub subordinate |
Default Value | sub |
Required | No |
Multi-Valued | No |
-f {filterFile}
--filterFile {filterFile}
Description | The path to the file containing the search filter(s) to use. If no path is provided, then the filter must be provided on the command line after the configuration options |
Required | No |
Multi-Valued | No |
-o {outputFile}
--outputFile {outputFile}
Description | The path to the output file to which the matching entries should be written. If no path is provided, then the data will be written to standard output by default |
Required | No |
Multi-Valued | No |
--checkSchema
Description | Perform schema validation for entries in the target LDIF file and report errors for any entries that violate schema constraints |
-O
--overwriteExisting
Description | Any existing output file should be overwritten rather than appended |
-T
--dontWrap
Description | Long lines should not be wrapped |
-z {sizeLimit}
--sizeLimit {sizeLimit}
Description | Maximum number of matching entries to return |
Lower Bound | 0 |
Default Value | 0 |
Required | No |
Multi-Valued | No |
-t {timeLimit}
--timeLimit {timeLimit}
Description | Maximum length of time (in seconds) to spend processing |
Lower Bound | 0 |
Default Value | 0 |
Required | No |
Multi-Valued | No |