************************************ Migrate from slapd.conf to cn=config ************************************ .. TIP:: This documentation is generic Assumptions: :: the path to the ``slapd.conf`` OpenLDAP configuration file :: the path to the ``slapd.d`` folder that is going to store the future cn=config configuration :: the user that owns the slapd process :: the group that owns the slapd process 1. Stop OpenLDAP:: systemctl stop slapd 2. Create cn=config directory:: mkdir 3. Convert configuration file:: slaptest -f -F -d 256 # set correct permissions chown -R : find -type d -exec chmod 750 {} \; find -type f -exec chmod 640 {} \; 4. Update the arguments for your OpenLDAP launch command. It can be in any of these paths: * the systemd configuration file, * ``/etc/default/slapd``, * ``/etc/sysconfig/slapd``, * ``/usr/local/openldap/etc/openldap/slapd-cli.conf`` for OpenLDAP LTB packages You should replace the argument: ``-f `` by ``-F `` 5. Start OpenLDAP:: systemctl slapd start