

Default is file:// path where path is /var/tmp/ or specified with -T. F prefix URL prefix for temporary files. T path Write temporary files to directory specified by path (default: /var/tmp/) A second -t writes all retrieved values to files. This is useful for dealing with values containing non-character data Include the User Friendly Name form of the Distinguished Name (DN) in the output.Ī single -t writes retrieved non-printable values to a set of temporary files. The default is to exit after reporting an error. Errors are reported, but ldapsearch will continue with searches. Run in verbose mode, with many diagnostics written to standard output.Ĭontinuous operation mode. Useful for debugging in conjunction with -v. Show what would be done, but don't actually perform the search. ldapsearch must be compiled with LDAP_DEBUG defined for this option to have any effect. d debuglevel Set the LDAP debugging level to debuglevel. If -VV is given, only the version information is printed. Option -L controls the format of the output. The search results are displayed using an extended version of LDIF. If no attrs are listed, all user attributes are returned. If + is listed, all operational attributes are returned. If ldapsearch finds one or more entries, the attributes specified by attrs are returned. If not provided, the default filter, (objectClass=*), is used. String representation for search filters as defined in RFC 4515.


Ldapsearch opens a connection to an LDAP server, binds, and performs a search using specified parameters. Ldapsearch is a shell-accessible interface to the ldap_search_ext(3) library call.
