xwiki/xwiki-platform — comment on commit cc211737faa4a174e20c1bfd73f42976f1a2e4b7
File: xwiki-platform-core/xwiki-platform-ldap/xwiki-platform-ldap-api/src/main/java/org/xwiki/ldap/internal/LdapScriptService.java line 49
By tmortagne:

Not sure this is the right name, you can have LDAP as current authentication but still have LDAP authentication disabled (and fallback on XWiki authentocation) even if the javadoc explain what it's looking at.

I would prefer "isLDAPAuthenticator" or "isCurrentAuthenticatorLDAP" or anything more precise which is not about enabled/disabled.

Another possibility is to have somewhere else a more generic getAuthenticator which return the authenticator class and compare it with the expected one in the application.