$ sudo service slapd stop $ sudo slapindex $ sudo chown openldap:openldap /var/lib/ldap/* $ sudo service slapd start