Symas OpenLDAP Knowledge Base

Slapd.d Notes

slapcat -n 0 -F /opt/symas/etc/openldap/slapd.d -l /tmp/config.ldif —> command to export the cn=config database to the an ldif

slapcat -n 0 –> specifies that you are modifying the cn=config database

Or could you the -b options

To restore a slapd.d you will need to move the entire directory and recreate the slapd.d folder and then restore –> you cannot override

Steps to create convert to slapd.d

    cd /opt/symas/etc 
    ls 
    cd openldap 
    ls 
    ls -l 
    mkdir slapd.d 
    which slaptest 
    slaptest -f slapd.conf -F slapd.d 
    ls -l slapd.d 
    ls 
    vi symas-openldap.conf 

add the following

EXTRA_SLAPD_ARGS - Extra arguments for slapd. Use this variable

to hold extra flags and parameters for the slapd command line.

For example, to specify the location of the dynamic config

directory:

EXTRA_SLAPD_ARGS=“-F /opt/symas/etc/openldap/slapd.d”

EXTRA_SLAPD_ARGS=“-F /opt/symas/etc/openldap/slapd.d”

/etc/init.d/slapd restart

    ps -eaf | grep slapd 
    ls 
    more slapd.conf 
    ldapsearch -x -D cn=admin,cn=config -W -b cn=config 
    ls -l 
    /etc/init.d/slapd stop 
    /etc/init.d/slapd stop