1SLAPO-VALSORT(5)              File Formats Manual             SLAPO-VALSORT(5)
2
3
4

NAME

6       slapo-valsort - Value Sorting overlay to slapd
7

SYNOPSIS

9       /etc/openldap/slapd.conf
10

DESCRIPTION

12       The  Value  Sorting overlay can be used with a backend database to sort
13       the values of specific multi-valued attributes within  a  subtree.  The
14       sorting  occurs  whenever  the  attributes  are  returned  in  a search
15       response.
16
17       Sorting can be specified in ascending or descending order, using either
18       numeric  or  alphanumeric sort methods. Additionally, a "weighted" sort
19       can be  specified,  which  uses  a  numeric  weight  prepended  to  the
20       attribute  values.   The weighted sort is always performed in ascending
21       order, but may be combined with the other methods for values  that  all
22       have  equal  weights.  The weight is specified by prepending an integer
23       weight {<weight>} in front of each value of  the  attribute  for  which
24       weighted  sorting is desired. This weighting factor is stripped off and
25       not returned in search results unless the valsort control is  specified
26       (1.3.6.1.4.1.4203.666.5.14).
27
28       The valsort control requires a value consisting of a Sequence that con‐
29       tains a boolean flag. The weighting factor  is  only  returned  if  the
30       boolean  value  is  TRUE.  In lber-encode(3) format, the required value
31       must conform to "{b}" syntax.
32
33

CONFIGURATION

35       These slapd.conf options apply to  the  Value  Sorting  overlay.   They
36       should appear after the overlay directive.
37
38       valsort-attr  <attribute>  <baseDN>  (<sort-method>  | weighted [<sort-
39       method>])
40              Configure a sorting method for the specified  attribute  in  the
41              subtree  rooted  at  baseDN.   The  sort-method  may  be  one of
42              alpha-ascend, alpha-descend, numeric-ascend, or numeric-descend.
43              If  the  special weighted method is specified, a secondary sort-
44              method may also be specified. It  is  an  error  to  specify  an
45              alphanumeric sort-method for an attribute with Integer or Numer‐
46              icString syntax, and it is an error to specify a  numeric  sort-
47              method  for  an  attribute  with  a syntax other than Integer or
48              NumericString.
49

EXAMPLES

51            database bdb
52            suffix dc=example,dc=com
53            ...
54            overlay valsort
55            valsort-attr member ou=groups,dc=example,dc=com alpha-ascend
56
57       To invoke ldapsearch(1) with the valsort  control,  the  control  value
58       must  be set appropriately.  The following octets represent the desired
59       "{b}" encoding:
60
61            0x30 0x03 0x01 0x01 0xff
62
63       The control can be sent from the command-line using the base64 encoding
64       of the value:
65
66            ldapsearch -E 1.3.6.1.4.1.4203.666.5.14=::MAMBAf8=
67
68

FILES

70       /etc/openldap/slapd.conf
71              default slapd configuration file
72

SEE ALSO

74       slapd.conf(5), slapd-config(5).
75

ACKNOWLEDGEMENTS

77       This module was written in 2005 by Howard Chu of Symas Corporation. The
78       work was sponsored by Stanford University.
79
80
81
82OpenLDAP 2.4.46                   2018/03/22                  SLAPO-VALSORT(5)
Impressum