cn=config administration (debian)

Access the configuration

The following command must be used (as root):

ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=config"

Modify the configuration

The following example adds an index config for the DB.

First you need to define a ldif file, then apply it.

  1. Edit index.ldif:

    dn: olcDatabase={1}hdb,cn=config
    changetype: modify
    add: olcDbIndex
    olcDbIndex: uniqueMember eq
    
  2. Apply the change (as root):

    ldapmodify -Y EXTERNAL -H ldapi:/// -f index.ldif
    

Enable remote access using a root DN

As root on the slapd server:

ldapmodify -Y EXTERNAL -H ldapi:/// << EOF
dn: olcDatabase={-1}frontend,cn=config
changetype: modify
add: olcAccess
olcAccess: {0}to * by dn="cn=admin,dc=ol,dc=com" write by * none
EOF

The cn=admin,dc=ol,dc=com DN can be used for write operations on the cn=config DB.