#
# reload the sample LDAP file
#
MANAGER=Manager
DOMAIN=my-domain
COM=com
SAMPLE=ebp-sample.ldif

# first, delete all entries
ldapdelete -x -W -D "cn=$MANAGER,dc=$DOMAIN,dc=$COM" -r "dc=$DOMAIN,dc=$COM"

# next, add in the entries
ldapadd -x -W -D "cn=$MANAGER,dc=$DOMAIN,dc=$COM" -f $SAMPLE

# finally, dump all entries from the LDAP server
ldapsearch -x -b "dc=$DOMAIN,dc=$COM" "(objectclass=*)"

