set olcDbMaxSize for all created lmdb databases

This commit is contained in:
Benjamin Dauvergne 2016-05-17 20:51:31 +02:00
parent 11e6228dbe
commit ce4536e4ac
4 changed files with 7 additions and 0 deletions

View File

@ -144,6 +144,7 @@ olcAccess: {9}to dn.subtree="ou=structures,$SUFFIX"
olcAccess: {10}to *
by group.exact="cn=reader,ou=groups,$SUFFIX" +r
by users +s
olcDbMaxSize: 1073741824
# Create accesslog DIT
add olcDatabase={1}mdb,cn=config
@ -155,6 +156,7 @@ olcAccess: {0}to *
by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage
by group=cn=admin,ou=groupes,$SUFFIX manage
by * break
olcDbMaxSize: 1073741824
add olcOverlay={0}syncprov,olcDatabase={1}mdb,cn=config
objectClass: olcOverlayConfig

View File

@ -77,6 +77,9 @@ olcAccess: {10}to *
replace: olcDbIndex
olcDbIndex: objectClass,contextCSN,member,eduPersonPrincipalName,owner,supannRefId eq
olcDbIndex: supannAliasLogin,mail,givenName,uid,cn,sn,supannMailPerso,displayName pres,eq,approx,sub
-
replace: olcDbMaxSize
olcDbMaxSize: 1073741824
EOF
echoonerror ldapmodify -H ldapi:// -Y EXTERNAL -f $LDIF
if echoonerror ldapsearch -H ldapi:// -Y EXTERNAL -b "$DN2" olcConstraintAttribute=*displayName* >/dev/null; then

View File

@ -13,6 +13,7 @@ olcAccess: {1}to *
by dn.one="ou=readers,o=meta" read
by * none
olcLimits: {0}* size.pr=1000 size.prtotal=unlimited
olcDbMaxSize: 1073741824
add o=meta
objectClass: organization

View File

@ -55,6 +55,7 @@ olcDbDirectory: /var/lib/ldap/config-accesslog/
olcAccess: {0}to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
by * break
olcDbMaxSize: 1073741824
dn: olcDatabase={1}monitor,cn=config
objectClass: olcDatabaseConfig