19.5.7. LDAP 중첩 멤버십 동기화의 예
중첩 그룹 LDAP 동기화 예제를 허용 목록 그룹과 함께 실행하여 중첩 Active Directory 그룹의 구성원이 결과 OpenShift Container Platform 그룹에 표시되는지 확인할 수 있습니다.
사전 요구 사항
-
LDAP 동기화 구성 파일이 있습니다. 이 절차에서는
augmented_active_directory_config_nested.yaml이라는 예제 파일을 사용합니다. -
cluster-admin역할의 사용자로 클러스터에 액세스할 수 있어야 합니다.
프로세스
다음 명령을 실행하여
augmented_active_directory_config_nested.yaml파일과 동기화합니다.$ oc adm groups sync \ 'cn=admins,ou=groups,dc=example,dc=com' \ --sync-config=augmented_active_directory_config_nested.yaml \ --confirm참고cn=admins,ou=groups,dc=example,dc=com그룹을 명시적으로 허용해야 합니다.OpenShift Container Platform은 이전 동기화 작업의 결과로 다음과 같은 그룹 레코드를 만듭니다.
apiVersion: user.openshift.io/v1 kind: Group metadata: annotations: openshift.io/ldap.sync-time: 2015-10-13T10:08:38-0400 openshift.io/ldap.uid: cn=admins,ou=groups,dc=example,dc=com openshift.io/ldap.url: LDAP_SERVER_IP:389 creationTimestamp: name: admins users: - jane.smith@example.com - jim.adams@example.com다음과 같습니다.
metadata.annotations.openshift.io/LDAP.sync-time- 이 OpenShift Container Platform 그룹이 LDAP 서버와 마지막으로 동기화된 시간으로, ISO 8601 형식으로 되어 있습니다.
metadata.annotations.openshift.io/LDAP.uid- LDAP 서버에서 그룹의 고유 식별자를 지정합니다.
metadata.annotations.openshift.io/LDAP.url- 그룹 레코드가 저장된 LDAP 서버의 IP 주소 및 호스트를 지정합니다.
metadata.name- 동기화 파일에서 지정한 그룹의 이름입니다.
사용자동기화 파일에서 지정한 대로 이름이 지정된 그룹 멤버에 해당하는 사용자입니다.
참고중첩 그룹 멤버십이 Microsoft Active Directory Server에 의해 평면화되었으므로 포함됩니다.