SLAPO-CONSTRAINT(5) File Formats Manual SLAPO-CONSTRAINT(5) (NAME) slapo-constraint - slapd (SYNOPSIS) /etc/openldap/slapd.conf (DESCRIPTION) constraint LDAP . . () FQDN . add modify rename LDAP add replace modify rename . relax . (CONFIGURATION) slapd.conf constraint . overlay . constraint_attribute [,...] [ [...]] . : regex negregex size count uri set. regex negregex ( regex(7) ). uri LDAP URI . URI . . set ACL . . size count . . : restrict= base scope filter LDAP URI . base (naming context) . scope base base . URI . constraint LDAP_CONSTRAINT_VIOLATION . (EXAMPLES) overlay constraint constraint_attribute jpegPhoto size 131072 constraint_attribute userPassword count 3 constraint_attribute mail regex ^[[:alnum:]]+@mydomain.com$ constraint_attribute mail negregex ^[[:alnum:]]+@notallowed.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)" mail @mydomain.com @notallowed.com . title title titleCatalog . ( "dc=catalog,dc=example,dc=com" titleCatalog .) cn sn givenName inetOrgPerson . (FILES) /etc/openldap/slapd.conf slapd (SEE ALSO) slapd.conf(5), slapd-config(5). (ACKNOWLEDGEMENTS) Neil Dunbar Hewlett-Packard Howard Chu Emmanuel Dreyfus . OpenLDAP Software OpenLDAP . OpenLDAP Software LDAP 3.3 . OpenLDAP 2.6.13 2026/03/09 SLAPO-CONSTRAINT(5)