diff options
author | Simo Sorce <idra@samba.org> | 2006-01-06 19:42:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:48 -0500 |
commit | b51fe793c7cefb693d6d3633272b82238e712abe (patch) | |
tree | 8548d4d081c18631e38f9ab70ccf902bd4fb48d5 /source4/dsdb | |
parent | a2cad19bbddfdbef6a01d6cf300dabbc9cf96165 (diff) | |
download | samba-b51fe793c7cefb693d6d3633272b82238e712abe.tar.gz samba-b51fe793c7cefb693d6d3633272b82238e712abe.tar.bz2 samba-b51fe793c7cefb693d6d3633272b82238e712abe.zip |
r12745: Initial work to support a syntax to pass over controls via
command line to ldbsearch. Very rough work, no checks are
done on the input yet (will segfault if you make it wrong).
Controls are passed via the --controls switch an are comma
separated (no escaping yet).
General syntax is <ctrl_name>:<criticality>
<ctrl_name> is a string
<criticality> is 1 or 0
Current semi-parsed controls are:
server_sort
syntax: server_sort:1:0:attributename
1st parm: criticality
2nd parm: reversed
3rd parm: attribute name to be used for sorting
todo: still missing suport for multiple sorting
attributes and ordering rule
no check on result code
paged_results
syntax: paged_results:1:100
1st parm: criticality
2nd parm: number of results to be returned
todo: ldbsearch will return only the first batch
(missing code to cycle over conditionally)
no check on result code
extended_dn
syntax: extended_dn:1:0
1st parm: criticality
2nd parm: type, see MS docs on meaning
Simo.
(This used to be commit 4c685ac0d1638a1d5392dfe733baf0db77e84858)
Diffstat (limited to 'source4/dsdb')
0 files changed, 0 insertions, 0 deletions