When the LDAP authentication fails with wrong credentials, we should add an entry to the ACL log corresponding to the failed authentication attempt.
We can call the module API function ValkeyModule_ACLAddLogEntryByUserName
to register the event in the ACL log.