8.2. コマンドラインを使用した新規データベースリンクの作成
dsconf chaining link-create コマンドを使用して、新しいデータベースリンクを作成できます。
前提条件
- Web コンソールで Directory Server ユーザーインターフェイスを開き、インスタンスを選択している。
手順
新規データベースリンクを作成するには、以下を行います。
# dsconf -D "cn=Directory Manager" ldap://server.example.com chaining link-create --suffix="ou=Customers,dc=example,dc=com" --server-url="ldap://remote_server.example.com:389" --bind-mech=SIMPLE --bind-dn="cn=proxy_user,cn=config" --bind-pw="password" "example_chain_name"
このコマンドを使用すると、ou=Customers,dc=example,dc=com の example_chain_name という名前のデータベースリンクが作成されます。これは、ldap://remote_server.example.com:389 サーバーを参照し、指定のバインド DN と password を使用して認証します。bind-mech を SIMPLE (証明書ベースの認証の場合は EXTERNAL) に設定するか、kerberos 認証の場合は GSSAPI に設定する必要があります。
- データベースリンクの作成時に設定できる追加設定を表示します。
# dsconf -D "cn=Directory Manager" ldap://server.example.com chaining link-create --help
proxy_user にデータへのアクセス権を付与するには、リモートサーバーの dc=example,dc=com 接尾辞にプロキシー ACI エントリーを作成する必要があります。
検証
新しいデータベースリンクを表示します。
# dsconf -D "cn=Directory Manager" ldap://server.example.com chaining link-create --suffix="ou=Customers,dc=example,dc=com" --server-url="ldap://remote_server.example.com:389" --bind-mech=SIMPLE --bind-dn="cn=proxy_user,cn=config" --bind-pw="password" "example_chain_name"