NIFI-7832 Resetting boolean that indicates password is being used when service is disabled (#4543)

Signed-off-by: Andy LoPresto <alopresto@apache.org>
This commit is contained in:
Bryan Bende 2020-09-22 12:11:46 -04:00 committed by GitHub
parent 73df6f1edf
commit caf79601ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,6 +222,7 @@ public class HortonworksSchemaRegistry extends AbstractControllerService impleme
final String keytab = kerberosCredentialsService.getKeytab();
final String jaasConfigString = getKeytabJaasConfig(principal, keytab);
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.SASL_JAAS_CONFIG.name(), jaasConfigString);
usingKerberosWithPassword = false;
} else if (!StringUtils.isBlank(kerberosPrincipal) && !StringUtils.isBlank(kerberosPassword)) {
schemaRegistryConfig.put(SchemaRegistryClientWithKerberosPassword.SCHEMA_REGISTRY_CLIENT_KERBEROS_PRINCIPAL, kerberosPrincipal);
schemaRegistryConfig.put(SchemaRegistryClientWithKerberosPassword.SCHEMA_REGISTRY_CLIENT_KERBEROS_PASSWORD, kerberosPassword);
@ -268,6 +269,7 @@ public class HortonworksSchemaRegistry extends AbstractControllerService impleme
}
initialized = false;
usingKerberosWithPassword = false;
}