12.10.11. ロールに基づくアクセスの定義
バインドルールの roledn キーワードを使用すると、1 つまたは複数のロールセットが設定されたユーザーへのアクセスを許可または拒否できます。
注記
Red Hat は、ロールの代わりにグループを使用することを推奨します。
roledn キーワードを使用したバインドルールでは、次の構文を使用します。
roledn comparison_operator "ldap:///distinguished_name || ldap:///distinguished_name || ..."
識別名 (DN) にコンマが含まれている場合は、バックスラッシュでエスケープしてください。
例12.33 ロールに基づくアクセスの定義
nsRole 属性で cn=Human Resources,ou=People,dc=example,dc=com ロールを設定したユーザーが ou=People,dc=example,dc=com のエントリーの manager 属性を検索および読み取るようにするには、以下を実行します。
# ldapmodify -D "cn=Directory Manager" -W -H ldap://server.example.com -x
dn: ou=People,dc=example,dc=com
changetype: modify
add: aci
aci: (targetattr="manager") (version 3.0;
acl "Allow manager role to update manager attribute";
allow (search, read) roledn = "ldap:///cn=Human Resources,ou=People,dc=example,dc=com";)