Find anonymous LDAP binds

Proprietary

Finds JNDI environments that set Context.SECURITY_AUTHENTICATION to none or anonymous, which binds to the LDAP server without credentials and lets anyone read or modify the directory. Search only: the bind DN and password a fix needs are not present in source, and switching to simple alone leaves the bind unauthenticated.

org.openrewrite.java.security.search.FindAnonymousLdapBind
mod run . --recipe=org.openrewrite.java.security.search.FindAnonymousLdapBind

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.