8.5. 組織単位の管理
管理者は、ディレクトリーエントリーのコンテナーとして組織単位 (OU) を使用できます。たとえば、OU を使用して、ユーザーとグループのエントリーを分離できます。Directory Server で OU を管理するには、dsidm organizationalunit コマンドを使用します。
- OU を作成するには、次のコマンドを実行します。
dsidm -D "cn=Directory Manager" ldap://server.example.com -b "dc=example,dc=com" organizationalunit create --ou OU_name
# dsidm -D "cn=Directory Manager" ldap://server.example.com -b "dc=example,dc=com" organizationalunit create --ou OU_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - エントリー内の OU をリスト表示するには、以下を入力します。
dsidm -D "cn=Directory Manager" ldap://server.example.com -b "dc=example,dc=com" organizationalunit list
# dsidm -D "cn=Directory Manager" ldap://server.example.com -b "dc=example,dc=com" organizationalunit list People ...
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - OU の名前を変更するには、次のコマンドを実行します。
dsidm -D "cn=Directory Manager" ldap://server.example.com -b "dc=example,dc=com" organizationalunit rename old_name new_name
# dsidm -D "cn=Directory Manager" ldap://server.example.com -b "dc=example,dc=com" organizationalunit rename old_name new_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - OU を削除するには、次のコマンドを実行します。
dsidm -D "cn=Directory Manager" ldap://server.example.com -b "dc=example,dc=com" organizationalunit delete OU_name
# dsidm -D "cn=Directory Manager" ldap://server.example.com -b "dc=example,dc=com" organizationalunit delete OU_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow