diff --git a/lib/trino-plugin-toolkit/src/main/java/io/trino/plugin/base/ldap/JdkLdapClient.java b/lib/trino-plugin-toolkit/src/main/java/io/trino/plugin/base/ldap/JdkLdapClient.java index 0fb461f585ee..ec10304a90c0 100644 --- a/lib/trino-plugin-toolkit/src/main/java/io/trino/plugin/base/ldap/JdkLdapClient.java +++ b/lib/trino-plugin-toolkit/src/main/java/io/trino/plugin/base/ldap/JdkLdapClient.java @@ -174,6 +174,7 @@ public CloseableContext(DirContext context) this.context = requireNonNull(context, "context is null"); } + @SuppressWarnings("BanJNDI") public NamingEnumeration search(String name, String filter, SearchControls searchControls) throws NamingException { diff --git a/plugin/trino-password-authenticators/src/test/java/io/trino/plugin/password/ldap/LdapUtil.java b/plugin/trino-password-authenticators/src/test/java/io/trino/plugin/password/ldap/LdapUtil.java index 6912a6468b16..314bc0f2c02a 100644 --- a/plugin/trino-password-authenticators/src/test/java/io/trino/plugin/password/ldap/LdapUtil.java +++ b/plugin/trino-password-authenticators/src/test/java/io/trino/plugin/password/ldap/LdapUtil.java @@ -45,6 +45,7 @@ final class LdapUtil private LdapUtil() {} + @SuppressWarnings("BanJNDI") public static String addLdapDefinition(LdapObjectDefinition ldapObjectDefinition, DirContext context) { requireNonNull(ldapObjectDefinition, "LDAP Object Definition is null"); @@ -69,6 +70,7 @@ public static String addLdapDefinition(LdapObjectDefinition ldapObjectDefinition return ldapObjectDefinition.getDistinguishedName(); } + @SuppressWarnings("BanJNDI") public static void addAttributesToExistingLdapObjects(String distinguishedName, Map> modifiedAttributes, DirContext context) { requireNonNull(distinguishedName, "distinguishedName is null"); diff --git a/pom.xml b/pom.xml index 103e889bee88..4cb8cb61594f 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ 1.14 188 2.0.0 - 2.12.0 + 2.14.0 1.16.3 1.0.8 3.2.12