Opens a connection to an LDAP server, binds, and modifies or adds entries.
ldapadd [-a ][-b ][-c][-C][-d][-D ][-f][-g][-G][-h][-i file][-K][-m][-M][-N][-O][-p][-P][-r][-R][-U][-v][-V][-w][-y][-Y][-Z]
The ldapmodify command opens a connection to an LDAP server, binds, and modifies or adds entries. The entry information is read from standard input or from file, specified using the -f option. ldapadd is implemented as a hard link to the ldapmodify tool. When invoked as ldapadd, the -a (add new entry) option is turned on automatically.
Flag name | Description |
---|---|
-a | Forces add operation as default. |
-b | Supports binary values from files (old style paths). |
-c | Specifies continuous operation; do not stop processing on error. |
-C charset | Sets the character set name to use, as registered with Internet Assigned Numbers Authority (IANA). |
-d level | Sets the debugging level in LDAP library. |
-D dn | Binds dn. |
-f file | Specifies that entry-modification information
should be read from the specified file. Note: Standard input is used
if the file is not specified.
|
-g | Specifies that trailing spaces should not be stripped on attribute values. |
-G realm | Specifies that realm is to be used for the DIGEST-MD5 bind mechanism. |
-h host | Specifies the LDAP server host name. |
-i file | Specifies that read entry-modification information
should be read from the specified file. Note: Standard input is used
if the file is not specified.
|
-K keyfile | Specifies the file to use for keys. |
-m mechanism | Performs SASL bind with the given mechanism. |
-M | Manages referral objects as normal entries. |
-N key_name | Specifies the private key name to use in the keyfile. |
-O maxhops | Specifies the maximum number of referrals to follow in a sequence. |
-p port | Specifies the LDAP server port number. |
-P key_pw | Specifies the keyfile password. |
-r | Forces replace operation as default. |
-R | Specifies not to chase referrals. |
-U username | Specifies the user name for the DIGEST-MD5 bind mechanism. |
-v | Specifies verbose mode |
-V version | Specifies the LDAP protocol version (2 or 3; default is 3). |
-w password | Binds password or '?' for non-echoed prompt. |
-y | Requests proxied authorization control. |
-Y | Uses a secure ldap connection (TLS). |
-Z | Uses a secure ldap connection (SSL). |