From 99016a835eba1048a1246f920ed1f8097fd64f3d Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Mon, 30 Nov 2015 12:38:17 -0500 Subject: [PATCH] NIFI-655: - Ensuring the protocol is specified. --- .../src/main/java/org/apache/nifi/ldap/LdapProvider.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/src/main/java/org/apache/nifi/ldap/LdapProvider.java b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/src/main/java/org/apache/nifi/ldap/LdapProvider.java index 4dc7ea4383..b604be4d02 100644 --- a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/src/main/java/org/apache/nifi/ldap/LdapProvider.java +++ b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/src/main/java/org/apache/nifi/ldap/LdapProvider.java @@ -155,6 +155,11 @@ public class LdapProvider implements LoginIdentityProvider { } } + // ensure the protocol is specified + if (StringUtils.isBlank(rawProtocol)) { + throw new ProviderCreationException("TLS - Protocol must be specified."); + } + try { final SSLContext sslContext; if (StringUtils.isBlank(rawKeystore)) {