ldapadd

Description

Add entries to an LDAP directory.

Command
ldapadd
Examples
Add entry from LDIF file
ldapadd -H ldap://localhost:389 -D "cn=admin,dc=example,dc=com" -w password -f entry.ldif
Add entry from stdin
echo "dn: uid=john,ou=people,dc=example,dc=com\nobjectClass: person\nuid: john\ncn: John Doe" | ldapadd -H ldap://localhost:389 -D "cn=admin,dc=example,dc=com" -w password
Parameters
Parameter Type Required Description
-H string No LDAP server URI
-D string No Bind DN
-w string No Bind password
-f string No LDIF file
Command Info
Category: Modify Operations
Type: Ldap
Views: 14
Status: Active
Tags
add create entry