2010-12-12 19:10:42 +03:00
|
|
|
.TH SLAPO-VALSORT 5 "2010/06/30" "OpenLDAP 2.4.23"
|
|
|
|
.\" Copyright 2005-2010 The OpenLDAP Foundation All Rights Reserved.
|
2008-05-22 17:57:46 +04:00
|
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
2010-12-12 19:10:42 +03:00
|
|
|
.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-valsort.5,v 1.4.2.7 2010/04/13 20:22:45 kurt Exp
|
2008-05-22 17:57:46 +04:00
|
|
|
.SH NAME
|
2010-03-08 08:08:40 +03:00
|
|
|
slapo\-valsort \- Value Sorting overlay to slapd
|
2008-05-22 17:57:46 +04:00
|
|
|
.SH SYNOPSIS
|
|
|
|
/etc/openldap/slapd.conf
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The Value Sorting overlay can be used with a backend database to sort the
|
|
|
|
values of specific multi-valued attributes within a subtree. The sorting
|
|
|
|
occurs whenever the attributes are returned in a search response.
|
|
|
|
.LP
|
|
|
|
Sorting can be specified in ascending or descending order, using either
|
|
|
|
numeric or alphanumeric sort methods. Additionally, a "weighted" sort can
|
|
|
|
be specified, which uses a numeric weight prepended to the attribute values.
|
|
|
|
The weighted sort is always performed in ascending order, but may be combined
|
|
|
|
with the other methods for values that all have equal weights. The weight
|
|
|
|
is specified by prepending an integer weight {<\fIweight\fP>}
|
|
|
|
in front of each value of the attribute for which weighted sorting is
|
|
|
|
desired. This weighting factor is stripped off and never returned in
|
|
|
|
search results.
|
|
|
|
|
|
|
|
.SH CONFIGURATION
|
|
|
|
These
|
|
|
|
.I slapd.conf
|
|
|
|
options apply to the Value Sorting overlay.
|
|
|
|
They should appear after the
|
|
|
|
.B overlay
|
|
|
|
directive.
|
|
|
|
.TP
|
2010-03-08 08:08:40 +03:00
|
|
|
valsort\-attr <\fIattribute\fP> <\fIbaseDN\fP> (<\fIsort-method\fP> | weighted [<\fIsort-method\fP>])
|
2008-05-22 17:57:46 +04:00
|
|
|
Configure a sorting method for the specified
|
|
|
|
.I attribute
|
|
|
|
in the subtree rooted at
|
|
|
|
.IR baseDN .
|
|
|
|
The
|
|
|
|
.I sort-method
|
|
|
|
may be one of
|
2010-03-08 08:08:40 +03:00
|
|
|
.BR alpha\-ascend ,
|
|
|
|
.BR alpha\-descend ,
|
|
|
|
.BR numeric\-ascend ,
|
2008-05-22 17:57:46 +04:00
|
|
|
or
|
2010-03-08 08:08:40 +03:00
|
|
|
.BR numeric\-descend .
|
2008-05-22 17:57:46 +04:00
|
|
|
If the special
|
|
|
|
.B weighted
|
|
|
|
method is specified, a secondary
|
|
|
|
.I sort-method
|
|
|
|
may also be specified. It is an
|
|
|
|
error to specify an alphanumeric
|
|
|
|
.I sort-method
|
|
|
|
for an attribute with Integer
|
|
|
|
or NumericString syntax, and it is an error to specify a numeric
|
|
|
|
.I sort-method
|
|
|
|
for an attribute with a syntax other than Integer or NumericString.
|
|
|
|
.SH EXAMPLES
|
|
|
|
.LP
|
|
|
|
.nf
|
|
|
|
database bdb
|
|
|
|
suffix dc=example,dc=com
|
|
|
|
...
|
|
|
|
overlay valsort
|
2010-03-08 08:08:40 +03:00
|
|
|
valsort\-attr member ou=groups,dc=example,dc=com alpha\-ascend
|
2008-05-22 17:57:46 +04:00
|
|
|
.fi
|
|
|
|
|
|
|
|
.SH FILES
|
|
|
|
.TP
|
|
|
|
\fI/etc/openldap/slapd.conf\fP
|
|
|
|
default \fBslapd\fP configuration file
|
|
|
|
.SH SEE ALSO
|
2010-03-08 08:08:40 +03:00
|
|
|
.BR slapd.conf (5),
|
|
|
|
.BR slapd\-config (5).
|
2008-05-22 17:57:46 +04:00
|
|
|
.SH ACKNOWLEDGEMENTS
|
|
|
|
.P
|
|
|
|
This module was written in 2005 by Howard Chu of Symas Corporation. The
|
|
|
|
work was sponsored by Stanford University.
|