Adding LDAP record

Problem

You want to add an LDAP record. Effectively create a record.



Solution

To add a record to LDAP, you simply run an ldapmodify with the -a flag.



Example



ldapmodify -x -a -v-D”cn=Manager,dc=demo,dc=net”-w secret < ldifFile

Where ldifFile is a file either hand crafted or generated with ldapsearch -L.



Reference

[tags]ldapadd, ldapmodify, LDAP Training School[/tags]



Leave a Reply

Your email address will not be published. Required fields are marked *