# Add indexes to the frontend db.dn: olcDatabase={1}hdb,cn=configchangetype: modifyadd: olcDbIndexolcDbIndex: entryCSN eq-add: olcDbIndexolcDbIndex: entryUUID eq
#Load the syncprov and accesslog modules.dn: cn=module{0},cn=configchangetype: modifyadd: olcModuleLoadolcModuleLoad: syncprov-add: olcModuleLoadolcModuleLoad: accesslog# Accesslog database definitionsdn: olcDatabase={2}hdb,cn=configobjectClass: olcDatabaseConfigobjectClass: olcHdbConfigolcDatabase: {2}hdbolcDbDirectory: /var/lib/ldap/accesslogolcSuffix: cn=accesslogolcRootDN: cn=admin,dc=intranet,dc=seamanpaper,dc=comolcDbIndex: default eqolcDbIndex: entryCSN,objectClass,reqEnd,reqResult,reqStart# Accesslog db syncprov.dn: olcOverlay=syncprov,olcDatabase={2}hdb,cn=configchangetype: addobjectClass: olcOverlayConfigobjectClass: olcSyncProvConfigolcOverlay: syncprovolcSpNoPresent: TRUEolcSpReloadHint: TRUE# syncrepl Provider for primary dbdn: olcOverlay=syncprov,olcDatabase={1}hdb,cn=configchangetype: addobjectClass: olcOverlayConfigobjectClass: olcSyncProvConfigolcOverlay: syncprovolcSpNoPresent: TRUE# accesslog overlay definitions for primary dbdn: olcOverlay=accesslog,olcDatabase={1}hdb,cn=configobjectClass: olcOverlayConfigobjectClass: olcAccessLogConfigolcOverlay: accesslogolcAccessLogDB: cn=accesslogolcAccessLogOps: writesolcAccessLogSuccess: TRUE# scan the accesslog DB every day, and purge entries older than 7 daysolcAccessLogPurge: 07+00:00 01+00:00
root@grackle:~# ldapsearch -z1 -LLLQY EXTERNAL -H ldapi:/// -s base contextCSNdn:root@grackle:~#
root@grackle:~# slapcat | grep -C 10 contextCSNobjectClass: organizationdc: intranetstructuralObjectClass: organizationentryUUID: 99e43416-73a1-1031-9d82-4f560555aca0creatorsName: cn=admin,dc=intranet,dc=seamanpaper,dc=comcreateTimestamp: 20120805233244ZentryCSN: 20120805233244.262007Z#000000#000#000000modifiersName: cn=admin,dc=intranet,dc=seamanpaper,dc=commodifyTimestamp: 20120805233244ZcontextCSN: 20120829024252.920832Z#000000#000#000000dn: cn=admin,dc=intranet,dc=seamanpaper,dc=comobjectClass: simpleSecurityObjectobjectClass: organizationalRolecn: admindescription: LDAP administratoruserPassword:: e1NTSEF9Nm9zUVlmUStzd1RCOVJCQXUyL3NhQURpYTZ1R0NuRC8=structuralObjectClass: organizationalRoleentryUUID: 99e4f9fa-73a1-1031-9d83-4f560555aca0creatorsName: cn=admin,dc=intranet,dc=seamanpaper,dc=comroot@grackle:~#