diff --git a/.github/workflows/ca-clone-replicated-ds-test.yml b/.github/workflows/ca-clone-replicated-ds-test.yml index f876076d2cc..ee5252b4bd8 100644 --- a/.github/workflows/ca-clone-replicated-ds-test.yml +++ b/.github/workflows/ca-clone-replicated-ds-test.yml @@ -275,6 +275,32 @@ jobs: -v \ primaryds-to-secondaryds + - name: Check schema in primary DS and secondary DS + run: | + docker exec primaryds ldapsearch \ + -H ldap://primaryds.example.com:3389 \ + -D "cn=Directory Manager" \ + -w Secret.123 \ + -x \ + -b cn=schema \ + -o ldif_wrap=no \ + -LLL \ + objectClasses attributeTypes \ + | grep "\-oid" | sort | tee primaryds.schema + + docker exec secondaryds ldapsearch \ + -H ldap://secondaryds.example.com:3389 \ + -D "cn=Directory Manager" \ + -w Secret.123 \ + -x \ + -b cn=schema \ + -o ldif_wrap=no \ + -LLL \ + objectClasses attributeTypes \ + | grep "\-oid" | sort | tee secondaryds.schema + + diff primaryds.schema secondaryds.schema + - name: Check entries in primary DS and secondary DS run: | # get DNs from primary DS diff --git a/.github/workflows/ca-clone-test.yml b/.github/workflows/ca-clone-test.yml index 95ad2513810..04aa3ceec6b 100644 --- a/.github/workflows/ca-clone-test.yml +++ b/.github/workflows/ca-clone-test.yml @@ -109,6 +109,33 @@ jobs: docker exec secondary pki-server cert-find + - name: Check schema in primary DS and secondary DS + if: always() + run: | + docker exec primaryds ldapsearch \ + -H ldap://primaryds.example.com:3389 \ + -D "cn=Directory Manager" \ + -w Secret.123 \ + -x \ + -b cn=schema \ + -o ldif_wrap=no \ + -LLL \ + objectClasses attributeTypes \ + | grep "\-oid" | sort | tee primaryds.schema + + docker exec secondaryds ldapsearch \ + -H ldap://secondaryds.example.com:3389 \ + -D "cn=Directory Manager" \ + -w Secret.123 \ + -x \ + -b cn=schema \ + -o ldif_wrap=no \ + -LLL \ + objectClasses attributeTypes \ + | grep "\-oid" | sort | tee secondaryds.schema + + diff primaryds.schema secondaryds.schema + - name: Check replication manager on primary DS if: always() run: | diff --git a/.github/workflows/ipa-clone-test.yml b/.github/workflows/ipa-clone-test.yml index 5f822186c71..b76376889d5 100644 --- a/.github/workflows/ipa-clone-test.yml +++ b/.github/workflows/ipa-clone-test.yml @@ -197,6 +197,33 @@ jobs: run: | docker exec secondary ipa-kra-install -p Secret.123 + - name: Check schema in primary DS and secondary DS + if: always() + run: | + docker exec primary ldapsearch \ + -H ldap://primary.example.com:389 \ + -D "cn=Directory Manager" \ + -w Secret.123 \ + -x \ + -b cn=schema \ + -o ldif_wrap=no \ + -LLL \ + objectClasses attributeTypes \ + | grep "\-oid" | sort | tee primary.schema + + docker exec secondary ldapsearch \ + -H ldap://secondary.example.com:389 \ + -D "cn=Directory Manager" \ + -w Secret.123 \ + -x \ + -b cn=schema \ + -o ldif_wrap=no \ + -LLL \ + objectClasses attributeTypes \ + | grep "\-oid" | sort | tee secondary.schema + + diff primary.schema secondary.schema + - name: Check replication managers on primary DS if: always() run: |