diff options
Diffstat (limited to 'jstests/ssl/libs/ssl_x509_role_auth_utf8.js')
-rw-r--r-- | jstests/ssl/libs/ssl_x509_role_auth_utf8.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/ssl/libs/ssl_x509_role_auth_utf8.js b/jstests/ssl/libs/ssl_x509_role_auth_utf8.js index f94db33d27f..4a483e9d7ec 100644 --- a/jstests/ssl/libs/ssl_x509_role_auth_utf8.js +++ b/jstests/ssl/libs/ssl_x509_role_auth_utf8.js @@ -1,12 +1,12 @@ // Helper script used to validate login as x509 auth with a certificate with roles works. (function() { - "use strict"; +"use strict"; - // Authenticate against a certificate with a RDN in the subject name of type UTF8STRING - const retutf8 = db.getSiblingDB("$external").auth({ - mechanism: "MONGODB-X509", - user: - "C=US,ST=New York,L=New York City,O=MongoDB,OU=Kernel Users,CN=\\D0\\9A\\D0\\B0\\D0\\BB\\D0\\BE\\D1\\8F\\D0\\BD" - }); - assert.eq(retutf8, 1, "Auth failed"); +// Authenticate against a certificate with a RDN in the subject name of type UTF8STRING +const retutf8 = db.getSiblingDB("$external").auth({ + mechanism: "MONGODB-X509", + user: + "C=US,ST=New York,L=New York City,O=MongoDB,OU=Kernel Users,CN=\\D0\\9A\\D0\\B0\\D0\\BB\\D0\\BE\\D1\\8F\\D0\\BD" +}); +assert.eq(retutf8, 1, "Auth failed"); }()); |