- Move the CSV file into here.
groups.csv
andpeople.csv
. - Python code
python3 generate_ldif.py
- ldapadd
ldapadd -x -D "<admin-dn>" -W -f people.ldif
ldapadd -x -D "<admin-dn>" -W -f groups.ldif
ldapdelete -x -D "<admin-dn>" -W "<dn-you-want-to-delete>"
ldapadd -x -D "<admin-dn>" -W -f <ldif file>