I'm trying to setup OpenLdap on ubuntu.
The following command is trying to add the accesslog database:
ldapmodify -Y EXTERNAL -H ldapi:/// -f test.ldif
When the name is "{2}mdb
", the result is success:
dn: olcDatabase={2}mdb,cn=config
changetype: add
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcDatabase: {2}mdb
olcDbDirectory: /var/lib/ldap/accesslog
olcSuffix: cn=accesslog
olcRootDN: cn=test,dc=example,dc=com
olcDbIndex: default eq
olcDbIndex: entryCSN,objectClass,reqEnd,reqResult,reqStart
Here is the result:
olcDatabase: {-1}frontend
olcDatabase: {0}config
olcDatabase: {1}mdb
olcDatabase: {2}mdb
But when the name is "{2}accesslog
", the result is failed:
dn: olcDatabase={2}accesslog,cn=config
changetype: add
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcDatabase: {2}accesslog
olcDbDirectory: /var/lib/ldap/accesslog
olcSuffix: cn=accesslog
olcRootDN: cn=test,dc=example,dc=com
olcDbIndex: default eq
olcDbIndex: entryCSN,objectClass,reqEnd,reqResult,reqStart
adding new entry "olcDatabase={2}accesslog,cn=config"
ldap_add: Other (e.g., implementation specific) error (80)
additional info: <olcDatabase> failed init
Here is the result:
olcDatabase: {-1}frontend
olcDatabase: {0}config
olcDatabase: {1}mdb
There is already a database called "{1}mdb
".
Is it possible for changing the accesslog database name to "{2}accesslog
"?