Regarding to 'man slapo-auditlog' I should just need to add the following.
dn: olcOverlay=auditlog,olcDatabase={1}hdb,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcAuditLogConfig
olcOverlay: auditlog
olcAuditlogFile: /tmp/auditlog.ldif
First the "olcOverlay=auditlog" is not installed by default on Centos 6. So i cant add this to anything. If I remove "changetype: add" I will get this error.
additional info: objectClass: value #1 invalid per syntax
I found out that I could create my own cn=module, and after that olcAuditLogConfig existed, and I could execute the above LDIF. But I still don't get any auditlogs.
dn: cn=module{0},cn=config
objectClass: olcModuleList
cn: module{0}
olcModulePath: /usr/lib64/openldap/
olcModuleLoad: auditlog.la
My LDAP-setup can be found here (now slightly modified on my own server)
How do I configure LDAP on Centos 6 for user authentication in the most secure and correct way?
I have now got everything to work and I was very close to the solution. It was a permission problem. This is how you add the auditlog to openldap installed on Centos 6.
First enable the module.
Setup a folder where ldap has permission to write.
And then configure the olcAuditLogConfig overlay.
Insert something to the database.
And check the auditlog file, if you see any contents it works.
You need to install the
openldap-servers-overlays
package:Uncomment the
auditlog
module inslapd.conf
:Specify the
auditlog
file:Modify/add some values to the attributes and take a look at the above log, you will see something like this: