19.5.6.3. 同期設定の例
以下の設定ファイルではこのような関係を作成しています。augmented_active_directory_config_nested.yaml として保存します。
kind: LDAPSyncConfig
apiVersion: v1
url: ldap://LDAP_SERVICE_IP:389
augmentedActiveDirectory:
groupsQuery:
derefAliases: never
pageSize: 0
groupUIDAttribute: dn
groupNameAttributes: [ cn ]
usersQuery:
baseDN: "ou=users,dc=example,dc=com"
scope: sub
derefAliases: never
filter: (objectclass=person)
pageSize: 0
userNameAttributes: [ mail ]
groupMembershipAttributes: [ "memberOf:1.2.840.113556.1.4.1941:" ]
各項目の説明:
augmentedActiveDirectory.groupsQuery-
groupsQueryフィルターを指定できないことを指定します。groupsQueryベース DN およびスコープの値は無視されます。groupsQueryでは有効なderefAliasesを設定する必要があります。 augmentedActiveDirectory.groupUIDAttribute-
LDAP サーバーのグループを一意に識別する属性を指定します。
dnに設定される必要があります。 augmentedActiveDirectory.groupNameAttributes- Group の名前として使用する属性を指定します。
augmentedActiveDirectory.userNameAttributes- OpenShift Container Platform Group レコードでユーザーのユーザー名として使用する属性を指定します。
augmentedActiveDirectory.groupMembershipAttributesメンバーシップ情報を保存するユーザーの属性を指定します。
LDAP_MATCHING_RULE_IN_CHAIN. を使用することに注意してください。注記ほとんどのインストールでは、
mailまたはsAMAccountNameを使用することが推奨されます。