X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=doc%2Fslapd-config.txt;h=23a8a1c839944150e43ad462320204c27826fdd7;hb=6ee830ff583d3db2afa0044a378b1737853e54b0;hp=bf4417689e4c2990d37a90120091f193a55fee35;hpb=91e87667ac77b0814130822608305c7c689e815f;p=mirror%2Fuserdir-ldap.git diff --git a/doc/slapd-config.txt b/doc/slapd-config.txt index bf44176..23a8a1c 100644 --- a/doc/slapd-config.txt +++ b/doc/slapd-config.txt @@ -15,6 +15,12 @@ overlay unique unique_uri ldap:///ou=users,dc=debian,dc=org?uidNumber,uid,keyFingerPrint?sub unique_uri ldap:///ou=groups,dc=debian,dc=org?gidNumber,cn?sub +# Constraints are useful +moduleload /usr/lib/ldap/constraint.so +overlay constraint +constraint_attribute mailContentInspectionAction regex ^([mM][aA][rR][kK][uU][pP]|[bB][lL][aA][cC][kK][hH][oO][lL][eE]|[rR][eE][jJ][eE][cC][tT])$ +constraint_attribute gender regex ^(1|2|9|[mM][aA][lL][eE]|[fF][eE][mM][aA][lL][eE]|[uU][nN][sS][pP][eE][cC][iI][fF][iI][eE][dD])$ + # End---------- Note that in more modern versions of slapd, the "by addr" and "by domain"