Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
02f52030
Commit
02f52030
authored
19 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
More for valsort
parent
57722288
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/man5/slapo-valsort.5
+73
-0
73 additions, 0 deletions
doc/man/man5/slapo-valsort.5
servers/slapd/overlays/valsort.c
+1
-1
1 addition, 1 deletion
servers/slapd/overlays/valsort.c
with
74 additions
and
1 deletion
doc/man/man5/slapo-valsort.5
0 → 100644
+
73
−
0
View file @
02f52030
.TH SLAPO-VALSORT 5 "RELEASEDATE" "OpenLDAP LDVERSION"
.\" Copyright 2005 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.\" $OpenLDAP$
.SH NAME
slapo-valsort \- Value Sorting overlay
.SH SYNOPSIS
ETCDIR/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
.B {<weight>}
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
.B slapd.conf
options apply to the Value Sorting overlay.
They should appear after the
.B overlay
directive and before any subsequent
.B database
directive.
.TP
.B valsort-attr <attribute> <baseDN> (<sort-method> | weighted [<sort-method>])
Configure a sorting method for the specified
.B attribute
in the subtree rooted at
.BR baseDN .
The
.B sort-method
may be one of
.BR alpha-ascend ,
.BR alpha-descend ,
.BR numeric-ascend ,
or
.BR numeric-descend .
If the special
.B weighted
method is specified, a secondary sort-method may also be specified. It is an
error to specify an alphanumeric sort-method for an attribute with Integer
or NumericString syntax, and it is an error to specify a numeric sort for
an attribute with a syntax other than Integer or NumericString.
.SH EXAMPLES
.LP
.nf
database bdb
suffix dc=example,dc=com
...
overlay valsort
valsort-attr member ou=groups,dc=example,dc=com alpha-ascend
.fi
.SH FILES
.TP
ETCDIR/slapd.conf
default slapd configuration file
.SH SEE ALSO
.BR slapd.conf (5).
.SH ACKNOWLEDGEMENTS
.P
This module was written in 2005 by Howard Chu of Symas Corporation. The
work was sponsored by Stanford University.
This diff is collapsed.
Click to expand it.
servers/slapd/overlays/valsort.c
+
1
−
1
View file @
02f52030
...
...
@@ -16,7 +16,7 @@
*/
/* ACKNOWLEDGEMENTS:
* This work was initially developed by Howard Chu for inclusion in
* OpenLDAP Software.
* OpenLDAP Software.
This work was sponsored by Stanford University.
*/
/*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment