B.2 LDAP固有のコマンド

コマンド

説明

使用法

ldapconfig

LDAPサーバおよびLDAPグループオブジェクトを設定するユーティリティです

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

LDAPサーバからエントリを追加または変更します

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

LDAPサーバからエントリを削除します

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のエントリの相対識別名(RDN)変更ツールです

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

LDAPの検索ツールです

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

NetIQ eDirectoryデータベースインデックスの作成、リスト表示、一時停止、再開、または削除に使用するユーティリティです。

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

ice

このユーティリティは、エントリをファイルからLDAPディレクトリにインポートし、ファイルのディレクトリ内のエントリを変更し、エントリをファイルにエクスポートし、ファイルの属性とクラス定義を追加します。

ice -S LDAP -s server1.acme.com -p 636 -L cert-server1.pem -d cn=admin,c=us -w password -F objectClass=* -c sub -D LDIF -f server1.ldif -e des -E secret
ice -S LDIF -f server1.ldif -e des -E secret -D LDAP -s server2.acme.com -p 636 -L cert-server2.pem -d cn=admin,c=us -w password

ユーザ名およびパスワードでの特殊文字

ユーザ名およびパスワードで特殊文字を使用すると、eDirectoryのインストール時またはスキーマ拡張時に値が渡される場合に問題が生じる可能性があります。ユーザ名またはパスワードに$や#などの特殊文字が含まれる場合、その特殊文字の前にバックスラッシュ(\)を付けてエスケープしてください。

たとえば、cn=admin$name.o=containerという管理者ユーザ名は、cn=admin\$name.o=containerで渡す必要があります。

コマンドラインにパラメータ値を入力する場合、その文字をエスケープしたり、その値の前後を一重引用符で囲んだりできます。

次に例を示します。

cn=admin\$name.o=container 

または

'cn=admin$name.o=container'