delete entries with ordered names, but that was not implemented in 2.3. It is
now in 2.4. This means, e.g., if you have
-> olcDatabase={1}bdb,cn=config
+> olcDatabase={1}mdb,cn=config
> olcSuffix: dc=example,dc=com
and you want to add a new subordinate, now you can ldapadd:
-> olcDatabase={1}bdb,cn=config
+> olcDatabase={1}mdb,cn=config
> olcSuffix: dc=foo,dc=example,dc=com
-This will insert a new BDB database in slot 1 and bump all following databases
- down one, so the original BDB database will now be named:
+This will insert a new back-mdb database in slot 1 and bump all following databases
+ down one, so the original back-mdb database will now be named:
-> olcDatabase={2}bdb,cn=config
+> olcDatabase={2}mdb,cn=config
> olcSuffix: dc=example,dc=com
H3: Better {{B:cn=schema}} functionality
If the directory is running vi {{F:slapd.d}}, then the following LDIF could be used to add the overlay to the overlay list
in {{B:cn=config}} and set what file the {{TERM:LDIF}} gets logged to (adjust to suit)
-> dn: olcOverlay=auditlog,olcDatabase={1}hdb,cn=config
+> dn: olcOverlay=auditlog,olcDatabase={1}mdb,cn=config
> changetype: add
> objectClass: olcOverlayConfig
> objectClass: olcAuditLogConfig
An example for use with {{cn=config}}:
-> dn: olcOverlay=constraint,olcDatabase={1}hdb,cn=config
+> dn: olcOverlay=constraint,olcDatabase={1}mdb,cn=config
> changetype: add
> objectClass: olcOverlayConfig
> objectClass: olcConstraintConfig
> olcPcacheTemplate: "(&(sn=)(givenName=))" 0 3600 0 0 0
> olcPcacheTemplate: "(&(departmentNumber=)(secretary=))" 0 3600
>
-> dn: olcDatabase={0}hdb,olcOverlay={0}pcache,olcDatabase={2}ldap,cn=config
-> objectClass: olcHdbConfig
+> dn: olcDatabase={0}mdb,olcOverlay={0}pcache,olcDatabase={2}ldap,cn=config
+> objectClass: olcMdbConfig
> objectClass: olcPcacheDatabase
-> olcDatabase: {0}hdb
+> olcDatabase: {0}mdb
> olcDbDirectory: ./testrun/db.2.a
> olcDbCacheSize: 20
> olcDbIndex: objectClass eq
in order to work over all of the glued databases. E.g.
.RS
.nf
- dn: olcDatabase={1}bdb,cn=config
+ dn: olcDatabase={1}mdb,cn=config
olcSuffix: dc=example,dc=com
...
- dn: olcOverlay={0}glue,olcDatabase={1}bdb,cn=config
+ dn: olcOverlay={0}glue,olcDatabase={1}mdb,cn=config
...
- dn: olcOverlay={1}syncprov,olcDatabase={1}bdb,cn=config
+ dn: olcOverlay={1}syncprov,olcDatabase={1}mdb,cn=config
...
.fi
.RE
.LP
.RS
.nf
-dn: olcOverlay=auditlog,olcDatabase={1}hdb,cn=config
+dn: olcOverlay=auditlog,olcDatabase={1}mdb,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcAuditLogConfig