Scroll to navigation

RSEARCH(1) General Commands Manual RSEARCH(1)


rsearch - Stress test an LDAP server with search operations


rsearch -D binddn -w bindpw -s suffix -f filter [options]


Stress tests an LDAP server with search operations.


A summary of options is included below:

print Usage (this message)
ldap server host (default: localhost)
ldap server port (default: 389)
search SCOPE [0,1,or 2] (default: 2)
bind before every operation
don't unbind -- just close the connection
set linger -- connection discarded when closed
No operation -- just bind (ignore mdc)
operaton: modify non-indexed attr (description). -B required
operaton: modify indexed attr (telephonenumber). -B required
operaton: delete. -B required
operaton: compare. -B required
name file; used for the search filter
[DN and] UID file (use '-B \?' to see the format)
list of attributes for search request
list of attributes for search request in a file

-- (use '-a \?' to see the format ; -a & -A are mutually exclusive)

(reserved for future use)
Search time limit, in seconds; (default: 30; no time limit: 0)
sample interval, in seconds (default: 10)
threads (default: 1)
Time limit, in seconds; cmd stops when exceeds <number>
show running average
take num samples, then stop
drop connection & reconnect every num searches
Use -B file for binding; ignored if -B is not given


rsearch was written by the 389 Project.


Report bugs to


Copyright © 2001 Sun Microsystems, Inc. Used by permission.
Copyright © 2017 Red Hat, Inc.
This manual page was written by Michele Baldessari <>, for the Debian project (but may be used by others).
This is free software. You may redistribute copies of it under the terms of the Directory Server license found in the LICENSE file of this software distribution. This license is essentially the GNU General Public License version 2 with an exception for plug-in distribution.

March 31, 2017