Adding LDAP record

[problem]

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

[/problem]

[solution]

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

[/solution]

[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.

[/example]

[reference]

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

[/reference]

If you have found my website useful, please consider buying me a coffee below 😉

Leave a Reply

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