diff --git a/docs/ldap-oid-reference.html b/docs/ldap-oid-reference.html index 4e426cdee..09792d0e4 100644 --- a/docs/ldap-oid-reference.html +++ b/docs/ldap-oid-reference.html @@ -7,7 +7,7 @@

LDAP OID Reference

- Object identifiers are used throughout LDAP, but they’re particularly common in schema elements, controls, and extended operations. This document provides a table of some of the most common OIDs used in LDAP along with a brief explanation of their purpose and (when applicable) a reference to the appropriate specification. + Object identifiers are used throughout LDAP, but they are particularly common in schema elements, controls, and extended operations. This document provides a table of some of the most common OIDs used in LDAP along with a brief explanation of their purpose and (when applicable) a reference to the appropriate specification.

@@ -1183,7 +1183,7 @@

LDAP OID Reference

- + diff --git a/resource/oid-registry.json b/resource/oid-registry.json index 000d3f1b3..b18f70816 100644 --- a/resource/oid-registry.json +++ b/resource/oid-registry.json @@ -231,7 +231,7 @@ { "oid":"1.3.6.1.1.21.2", "name":"Transaction Specification", "type":"Request Control", "origin":"RFC 5805", "url":"https://docs.ldap.com/specs/rfc5805.txt" } { "oid":"1.3.6.1.1.21.3", "name":"End Transaction", "type":"Extended Request", "origin":"RFC 5805", "url":"https://docs.ldap.com/specs/rfc5805.txt" } { "oid":"1.3.6.1.1.21.4", "name":"Aborted Transaction", "type":"Unsolicited Notification", "origin":"RFC 5805", "url":"https://docs.ldap.com/specs/rfc5805.txt" } -{ "oid":"1.3.6.1.1.22", "name":"LDAP Don’t Use Copy", "type":"Control", "origin":"RFC 6171", "url":"https://docs.ldap.com/specs/rfc6171.txt" } +{ "oid":"1.3.6.1.1.22", "name":"LDAP Don't Use Copy", "type":"Control", "origin":"RFC 6171", "url":"https://docs.ldap.com/specs/rfc6171.txt" } { "oid":"1.3.6.1.4.1.42.2.27.4.1.6", "name":"javaClassName", "type":"Attribute Type", "origin":"RFC 2713", "url":"https://docs.ldap.com/specs/rfc2713.txt" } { "oid":"1.3.6.1.4.1.42.2.27.4.1.7", "name":"javaCodebase", "type":"Attribute Type", "origin":"RFC 2713", "url":"https://docs.ldap.com/specs/rfc2713.txt" } { "oid":"1.3.6.1.4.1.42.2.27.4.1.8", "name":"javaSerializedData", "type":"Attribute Type", "origin":"RFC 2713", "url":"https://docs.ldap.com/specs/rfc2713.txt" } diff --git a/tests/unit/src/com/unboundid/util/OIDRegistryTestCase.java b/tests/unit/src/com/unboundid/util/OIDRegistryTestCase.java index 6062482c7..7a8817b3b 100644 --- a/tests/unit/src/com/unboundid/util/OIDRegistryTestCase.java +++ b/tests/unit/src/com/unboundid/util/OIDRegistryTestCase.java @@ -42,7 +42,6 @@ import java.io.PrintWriter; import java.lang.reflect.Field; import java.lang.reflect.Modifier; -import java.security.MessageDigest; import java.util.ArrayList; import java.util.List; @@ -314,7 +313,7 @@ public void testLDAPSDKDocumentationIsUpToDate() w.println(); w.println(baseIndent + "

"); w.println(baseIndent + " Object identifiers are used throughout LDAP, " + - "but they\u2019re particularly common in schema elements, " + + "but they are particularly common in schema elements, " + "controls, and extended operations. This document provides a " + "table of some of the most common OIDs used in LDAP along with a " + "brief explanation of their purpose and (when applicable) a " + @@ -380,18 +379,15 @@ public void testLDAPSDKDocumentationIsUpToDate() // Compute SHA-256 digests of the newly generated OID reference with the // existing version in the documentation. If they are different, then fail // the test. - final MessageDigest sha256 = CryptoHelper.getMessageDigest("SHA-256"); - final byte[] generatedFileBytes = - StaticUtils.readFileBytes(generatedHTMLFile); - final byte[] generatedFileDigest = sha256.digest(generatedFileBytes); + final List generatedFileLines = + StaticUtils.readFileLines(generatedHTMLFile); final File docsDir = new File(baseDir, "docs"); final File existingHTMLFile = new File(docsDir, "ldap-oid-reference.html"); - final byte[] existingFileBytes = - StaticUtils.readFileBytes(existingHTMLFile); - final byte[] existingFileDigest = sha256.digest(existingFileBytes); + final List existingFileLines = + StaticUtils.readFileLines(existingHTMLFile); - assertEquals(generatedFileBytes, existingFileBytes, + assertEquals(existingFileLines, generatedFileLines, "It appears that the OID registry has been updated, but the version " + "in the LDAP SDK documentation has not been updated. Replace '" + existingHTMLFile.getAbsolutePath() + "' with '" +

1.3.6.1.1.22LDAP Don’t Use Copy ControlLDAP Don't Use Copy Control RFC 6171