ldapadd
adds entries to an LDAP directory
TLDR
SYNOPSIS
ldapadd [options] [-f file]
DESCRIPTION
ldapadd adds entries to an LDAP directory. It reads LDIF (LDAP Data Interchange Format) files containing new entries to add to the directory.ldapadd is implemented as a hard link to ldapmodify with the -a flag automatically enabled. It connects to the LDAP server, binds with the provided credentials, and adds the specified entries. Without -H, it connects to the default LDAP server configured in ldap.conf.
PARAMETERS
-x
Use simple authentication instead of SASL.-D binddn
Bind distinguished name for authentication.-W
Prompt for bind password.-w password
Bind password (insecure, visible in process list).-H URI
LDAP server URI (e.g. ldap://host, ldaps://host, ldapi:///).-f file
Read entries from LDIF file instead of stdin.-c
Continue on errors (report but do not stop).-n
Dry run, show what would be done without modifying entries.-v
Verbose output.-d debuglevel
Set LDAP debugging level.-Y mechanism
SASL authentication mechanism (e.g. EXTERNAL, GSSAPI).-Z
Issue StartTLS extended operation.-ZZ
Require StartTLS to succeed.
LDIF EXAMPLE
objectClass: inetOrgPerson
uid: jdoe
cn: John Doe
sn: Doe
mail: jdoe@example.com
CAVEATS
Requires appropriate permissions. LDIF syntax must be correct. Parent entries must exist. Use -W instead of -w for security.
HISTORY
ldapadd is part of OpenLDAP, a free implementation of LDAP. OpenLDAP was started by Kurt Zeilenga in 1998 as a continuation of the University of Michigan LDAP project.
SEE ALSO
ldapmodify(1), ldapsearch(1)
