set olcDbMaxSize for all created lmdb databases
This commit is contained in:
parent
11e6228dbe
commit
ce4536e4ac
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue