@Override
    protected String getUsername() throws Exception {
        val uid = super.getUsername();

        val bindInit = new BindConnectionInitializer("cn=admin,dc=example,dc=org", new Credential("P@ssw0rd"));

        @Cleanup
        val connection = new LDAPConnection("localhost", 11389,
            bindInit.getBindDn(), bindInit.getBindCredential().getString());

        val rs = new ByteArrayInputStream(getLdif(uid).getBytes(StandardCharsets.UTF_8));
        LdapIntegrationTestsOperations.populateEntries(connection, rs, "ou=people,dc=example,dc=org", bindInit);
        return uid;
    }
This is {@link OpenLdapWebAuthnCredentialRepositoryTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-webauthn-ldap/src/test/java/org/apereo/cas/webauthn/OpenLdapWebAuthnCredentialRepositoryTests.java