Ldapmodify Rootdn

How to add root dn for cn=config

This document describes how to add root dn and password for cn=config base.

  • manager.ldif

    dn: olcDatabase={0}config,cn=config
    changetype: modify
    add: olcRootDN
    olcRootDN: cn=admin,cn=config
    -
    add: olcRootPW
    olcRootPW: {SSHA}blablabla
    
  • ldapmodify

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

By default, you should configure ldap’s configuration using ldapmodify -Y EXTERNAL -H ldapi:///

After configuring olcRootDN you can modify cn=config meta configuration using remote LDAP clients.