# Consumer Setup
# Sudo to cdeadmin

# Back up cedadmin's .bashrc
cp /.bashrc bashrc-backup

# Put the new basrc in place
cp ec-bashrc ~/.bashrc

# Reload profile
. ~/.bashrc

# Put ldaprc file in place
cp ec-ldaprc ~/.ldaprc

# Create the database directory for the consumer
mkdir $LDAPCONFC

# Load the consumer configuration
slapadd -F $LDAPCONFC -n0 -l consumer-config.ldif

# In a new separate terminal window start the consumer (leave the terminal open)
start-consumer

# To run ldap* commands on the consumer:
ldapsearch -QH $LDAPIC ...
ldapmodify -QH $LDAPIC ...
