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

NAME

6       slapo-valsort - Value Sorting overlay
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       never returned in search results.
26
27

CONFIGURATION

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

EXAMPLES

45            database bdb
46            suffix dc=example,dc=com
47            ...
48            overlay valsort
49            valsort-attr member ou=groups,dc=example,dc=com alpha-ascend
50
51

FILES

53       /etc/openldap/slapd.conf
54              default slapd configuration file
55

SEE ALSO

57       slapd.conf(5).
58

ACKNOWLEDGEMENTS

60       This module was written in 2005 by Howard Chu of Symas Corporation. The
61       work was sponsored by Stanford University.
62
63
64
65OpenLDAP 2.3.34                    2007/2/16                  SLAPO-VALSORT(5)
Impressum