table of contents
other versions
- wheezy 2.4.31-2+deb7u2
- wheezy-backports 2.4.31+really2.4.40+dfsg-1+deb8u1~bpo70+1
- jessie 2.4.40+dfsg-1+deb8u2
- jessie-backports 2.4.44+dfsg-4~bpo8+1
- testing 2.4.44+dfsg-5
- unstable 2.4.44+dfsg-5
SLAPO-CONSTRAINT(5) | File Formats Manual | SLAPO-CONSTRAINT(5) |
NAME¶
slapo-constraint - Attribute Constraint Overlay to slapdSYNOPSIS¶
/etc/ldap/slapd.confDESCRIPTION¶
The constraint overlay is used to ensure that attribute values match some constraints beyond basic LDAP syntax. Attributes can have multiple constraints placed upon them, and all must be satisfied when modifying an attribute value under constraint. This overlay is intended to be used to force syntactic regularity upon certain string represented data which have well known canonical forms, like telephone numbers, post codes, FQDNs, etc. It constrains only LDAP add, modify and rename commands and only seeks to control the add and replace values of modify and rename requests. No constraints are applied for operations performed with the relax control set.CONFIGURATION¶
This slapd.conf option applies to the constraint overlay. It should appear after the overlay directive.- constraint_attribute <attribute_name>[,...] <type> <value> [<extra> [...]]
- Specifies the constraint which should apply to the
comma-separated attribute list named as the first parameter. Five types of
constraint are currently supported - regex, size,
count, uri, and set.
- <extra> : restrict=<uri>
This extra parameter allows to restrict the
application of the corresponding constraint only to entries that match the
base, scope and filter portions of the LDAP URI. The
base, if present, must be within the naming context of the database.
The scope is only used when the base is present; it defaults to
base. The other parameters of the URI are not allowed.
EXAMPLES¶
overlay constraint constraint_attribute jpegPhoto size 131072 constraint_attribute userPassword count 3 constraint_attribute mail regex ^[[:alnum:]]+@mydomain.com$ constraint_attribute title uri ldap:///dc=catalog,dc=example,dc=com?title?sub?(objectClass=titleCatalog) constraint_attribute cn,sn,givenName set "(this/givenName + [ ] + this/sn) & this/cn" restrict="ldap:///ou=People,dc=example,dc=com??sub?(objectClass=inetOrgPerson)"
FILES¶
- /etc/ldap/slapd.conf
- default slapd configuration file
SEE ALSO¶
slapd.conf(5), slapd-config(5),ACKNOWLEDGEMENTS¶
This module was written in 2005 by Neil Dunbar of Hewlett-Packard and subsequently extended by Howard Chu and Emmanuel Dreyfus. OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from University of Michigan LDAP 3.3 Release.2014/09/20 | OpenLDAP |