B.2 LDAP-Specific Commands

Command

Description

Usage

ldapconfig

Utility to configure LDAP Server and LDAP Group objects

ldapconfig get [...] | set <attribute-value-list>  [-t <treename> | -p <hostname>[:port] | --config-file <configuration file>] [-w <password>] [-a <user FDN>] [-f]
ldapconfig [-t <treename> | -p <hostname>[:port]] [-w <password> | --config-file <configuration file>] [-a <user FDN>] [-V] [-R] [-H] [-f] -v <attribute>,<attribute2>...
ldapconfig [-t <treename> | -p hostname[:port] | --config-file <configuration file>] [-w <password>] [-a <admin FDN>] [-V] [-R] [-H] [-f] -s <attribute>=<value>,... 

ldapadd ldapmodify

Add or modify entries from an LDAP server

ldapmodify [-a] [-c] [-C] [-M] [-P] [-r] [-n] [-v] [-F] [-l <limit>] [-M[M]] [-d <debuglevel>] [-e <key filename>] [-D <binddn>] [[-W]|[-w <passwd>]] [-h <ldaphost>] [-p <ldap-port>] [-P <version>] [-Z[Z]] [-f <file>]
ldapadd [-c] [-C] [-l] [-M] [-P] [-r] [-n] [-v] [-F] [-l <limit>] [-M[M]] [-d  <debuglevel>] [-e <key filename>] [-D  <binddn>] [[-W ]| [-w <passwd>]] [-h  <ldaphost>] [-p <ldapport>] [-P <version>] [-Z[Z]] [-f <file>]

ldapdelete

Delete entries from an LDAP server

ldapdelete [-n] [-v]  [-c]  [-r] [-l] [-C] [-M] [-d <debuglevel>] [-e <key filename>] [-f <file>] [-D <binddn>] [[-W]| [-w <passwd>]] [-h <ldaphost>] [-p <ldapport>] [-Z[Z]] [dn]...

ldapmodrdn

LDAP modify entry Relative Distinguished Name (RDN) tool.

ldapmodrdn [-r] [-n] [-v] [-c] [-C] [-l] [-M] [-s <newsuperior>] [-d <debuglevel>] [-e <key filename>] [-D <binddn>] [[-W]|[-w  <passwd>]]  [-h <ldaphost>] [-p <ldapport>] [-Z[Z]] [-f <file>] [dn <newrdn>]

ldapsearch

The LDAP search tool

ldapsearch [-n] [-u] [-v] [-t] [-A] [-T] [-C] [-V] [-M] [-P] [-L] [-d <debuglevel>] [-e <key filename>] [-f <file>] [-D <binddn>] [[-W]| [-w <bindpasswd>]] [-h <ldaphost>] [-p <ldapport>] [-b <searchbase>] [-s <scope>] [-a <deref>] [-l <time limit>] [-z <size limit>] [-Z[Z]] filter [attrs....]

ndsindex

Utility to create, list, suspend, resume, or delete NetIQ eDirectory database indexes.

ndsindex list [-h <hostname>] [-p <port>] [-D <bind DN>] [-W|[-w <password>]] [-l <limit>] [-s <eDirectory Server DN>] [-Z[Z]] [<indexName1>, <indexName2>.....]
ndsindex add [-h <hostname>] [-p <port>] [-D <bind DN>] -W|[-w <password>] [-l <limit>] [-s <eDirectory Server DN>] [-Z[Z]] <indexDefinintion1> [<indexDefinintion2>.....]
ndsindex delete [-h <hostname>] [-p <port>] [-D <bind DN>] [-W|[-w <password>]] [-l <limit>] [-s <eDirectory Server DN>] [-Z[Z]] <indexName1> [<indexName2>.....]
ndsindex resume [-h <hostname>] [-p <port>] -D <bind DN> [-W|[-w <password>]] [-l <limit>] [-s <eDirectory Server DN>] [-Z[Z]] <indexName1> [<indexName2>.....]
ndsindex suspend [-h <hostname>] [-p <port>] [-D <bind DN>] [-W|[-w <password>]] [-l <limit>] [-s <eDirectory Server DN>] [-Z[Z]] <indexName1> [<indexName2>.....]

Special Characters in User Name and Password

Using special characters in user names and passwords can create problems when the values are passed during an eDirectory installation or schema extension. If the user name or password contains special characters, such as $, # and so on, escape the character by preceding it with a backslash (\) .

For example, an administrator user name of cn=admin$name.o=container must be passed as cn=admin\$name.o=container.

When entering parameter values at the command line, you can escape the character, or place single quotes around the value.

For example,

cn=admin\$name.o=container 

or

'cn=admin$name.o=container'