1.6. デフォルトのネーミングコンテキストの変更
ネーミングコンテキストは、その DIT のエントリーに対するルート名前空間を定義するディレクトリーツリー (DIT) の属性です。複数のルート接尾辞を持つインスタンスにデータを生成する場合、インスタンスには複数の DIT があり、それぞれ命名コンテキストは異なります。
この手順では、インスタンスで複数のルート接尾辞を使用する際に、コマンドラインでデフォルトのネーミングコンテキストを変更する方法を説明します。
インスタンスにアクセスするクライアントでは、使用する必要のあるネーミングコンテキストがわからない可能性があります。Directory Server は、デフォルトのネーミングコンテキストが既知の他の設定がない場合に、クライアントに対して通知します。
cn=config
の nsslapd-defaultnamingcontext
属性でデフォルトのネーミングコンテキストを設定します。Directory Server はこの値を Directory Server Agent Service Entry(root DSE) に伝播し、クライアントは匿名にクエリーできます。
前提条件
- インスタンスのデフォルトのネーミングコンテキストを定義する root 接尾辞を作成している。
手順
オプション: 現在のデフォルトネーミングコンテキストを表示します。
dsconf -D "cn=Directory Manager" ldap://server.example.com config get nsslapd-defaultnamingcontext
# dsconf -D "cn=Directory Manager" ldap://server.example.com config get nsslapd-defaultnamingcontextdsconf -D "cn=Directory Manager" ldap://server.example.com config get nsslapd-defaultnamingcontextdsconf -D "cn=Directory Manager" ldap://server.example.com config get nsslapd-defaultnamingcontextdsconf -D "cn=Directory Manager" ldap://server.example.com config get nsslapd-defaultnamingcontextdsconf -D "cn=Directory Manager" ldap://server.example.com config get nsslapd-defaultnamingcontext nsslapd-defaultnamingcontext: dc=example,dc=com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow nsslapd-defaultnamingcontext
パラメーターの値を、必要なネーミングコンテキストに置き換えます。dsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-defaultnamingcontext=dc=example,dc=net
# dsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-defaultnamingcontext=dc=example,dc=netdsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-defaultnamingcontext=dc=example,dc=netdsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-defaultnamingcontext=dc=example,dc=netdsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-defaultnamingcontext=dc=example,dc=netdsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-defaultnamingcontext=dc=example,dc=netdsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-defaultnamingcontext=dc=example,dc=net
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
検証
- 現在のデフォルトネーミングコンテキストを表示します。値を更新する必要があります。